/*
 * MyLicenseNow — composants des espaces connectés
 * --------------------------------------------------------
 * Authentification, espace client, back-office. Construit uniquement sur
 * css/gds-tokens.css et sur le vocabulaire visuel du template :
 * angles droits, ombre 0 10px 60px, capitales espacées, marine + accent rouge.
 */

/* ---------- Utilitaires ---------- */
.gds-muted { color: var(--text-muted); }
.gds-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gds-skip { position: absolute; left: -999px; top: 0; z-index: 10000; background: var(--accent); color: #fff; padding: 10px 20px; }
.gds-skip:focus { left: 10px; color: #fff; }
.gds-client-main, .gds-admin { visibility: hidden; }
.gds-ready .gds-client-main, .gds-ready .gds-admin { visibility: visible; }
:focus-visible { outline: 2px solid var(--primary-light) !important; outline-offset: 2px; }
.gds-nowrap { white-space: nowrap; }
.gds-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }

/* ---------- Boutons complémentaires ---------- */
.theme-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.gds-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 30px; font-size: 12px; line-height: 24px; letter-spacing: var(--ls-button); text-transform: uppercase;
	color: var(--primary); background: transparent; border: 1px solid var(--border); transition: var(--transition);
}
.gds-btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.gds-btn-sm { padding: 8px 18px !important; font-size: 11px !important; line-height: 20px !important; }
.gds-btn-danger { background: var(--danger) !important; }
.gds-btn-icon {
	width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--border); background: #fff; color: var(--primary); transition: var(--transition);
}
.gds-btn-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gds-link { color: #3a6693; text-decoration: underline; background: none; border: 0; padding: 0; }
.gds-link:hover { color: var(--accent); }
.gds-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Champs ---------- */
.gds-field { margin-bottom: 22px; position: relative; }
.gds-field > label, .gds-label {
	display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text);
}
.gds-field > label .req { color: var(--accent); }
.gds-field .form-control, .gds-input { border-radius: 0; }
.gds-field .form-control:focus { border-color: var(--primary-light); background: #fff; box-shadow: none; }
.gds-field .form-control[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 50px; }
.gds-hint { display: block; margin-top: 6px; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.gds-field-error { margin-top: 6px; font-size: 13px; line-height: 20px; color: var(--danger); }
.gds-field-error i { margin-right: 4px; }
.gds-input-group { position: relative; }
.gds-input-group .form-control { padding-right: 60px; }
.gds-input-group > button { position: absolute; right: 0; top: 0; height: 100%; width: 56px; background: none; border: 0; color: var(--text-muted); }
.gds-input-group > button:hover { color: var(--primary); }
.gds-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--text-body); margin-bottom: 14px; }
.gds-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.gds-strength { height: 4px; background: var(--border-light); margin: 10px 0 6px; }
.gds-strength span { display: block; height: 100%; width: 0; transition: var(--transition); background: var(--danger); }
.gds-strength--1 span { width: 20%; } .gds-strength--2 span { width: 40%; background: var(--warning); }
.gds-strength--3 span { width: 60%; background: var(--warning); } .gds-strength--4 span { width: 80%; background: var(--success); }
.gds-strength--5 span { width: 100%; background: var(--success); }
.gds-strength + small { font-size: 12px; line-height: 18px; color: var(--text-muted); }
.gds-form-section { padding-top: 10px; margin-bottom: 10px; }
.gds-form-section > h5 { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }

/* ---------- Cartes ---------- */
.gds-card { background: #fff; box-shadow: var(--shadow-md); padding: 35px; margin-bottom: 30px; position: relative; }
.gds-card--flat { box-shadow: none; border: 1px solid var(--border-light); }
.gds-card__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.gds-card__head h4, .gds-card__head h5 { margin: 0; }
.gds-card__head .sub-title, .gds-eyebrow { display: block; font-size: 13px; letter-spacing: var(--ls-button); text-transform: uppercase; color: var(--text-body); margin-bottom: 6px; }
.gds-eyebrow:before { content: "/"; color: var(--accent); margin-right: 6px; }
.gds-card--accent { border-top: 3px solid var(--accent); }
.gds-dl { display: grid; grid-template-columns: minmax(140px, 35%) 1fr; gap: 10px 20px; margin: 0; font-size: 15px; line-height: 24px; }
.gds-dl dt { color: var(--text-muted); font-weight: 400; }
.gds-dl dd { color: var(--text); margin: 0; font-weight: 500; word-break: break-word; }

/* DashboardCard (inspirée des .counter-block) */
.gds-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin-bottom: 30px; }
.gds-stat { background: #fff; box-shadow: var(--shadow-md); padding: 26px 26px 22px; display: flex; gap: 18px; align-items: center; border-left: 3px solid transparent; transition: var(--transition); color: inherit; }
a.gds-stat:hover { border-left-color: var(--accent); transform: translateY(-2px); color: inherit; }
.gds-stat__icon { width: 58px; height: 58px; border-radius: 50%; background: var(--surface); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.gds-stat__value { font-size: 32px; line-height: 1; font-weight: 700; color: var(--text); font-family: var(--font-title); }
.gds-stat__label { font-size: 13px; line-height: 18px; color: var(--text-body); margin-top: 6px; }

/* ---------- Badges ---------- */
.gds-badge { display: inline-block; padding: 4px 12px; font-size: 11px; line-height: 18px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.gds-badge--info { background: var(--info-bg); color: #3a6693; }
.gds-badge--primary { background: var(--primary); color: #fff; }
.gds-badge--success { background: var(--success-bg); color: #1f7a50; }
.gds-badge--warning { background: var(--warning-bg); color: #7a5600; }
.gds-badge--danger { background: var(--danger-bg); color: var(--danger); }
.gds-badge--muted { background: var(--surface); color: var(--text-body); }
.gds-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; line-height: 1; font-weight: 700; }
.gds-count[hidden] { display: none; }

/* ---------- Alertes ---------- */
.gds-alert { display: flex; gap: 14px; padding: 18px 22px; margin-bottom: 24px; font-size: 15px; line-height: 24px; border-left: 3px solid; }
.gds-alert > i { margin-top: 4px; }
.gds-alert p { margin: 0; }
.gds-alert--info { background: var(--info-bg); border-color: var(--info); color: var(--primary); }
.gds-alert p { color: inherit; }
.gds-alert--success { background: var(--success-bg); border-color: var(--success); color: #1b5e3f; }
.gds-alert--warning { background: var(--warning-bg); border-color: var(--warning); color: #6b4c00; }
.gds-alert--danger { background: var(--danger-bg); border-color: var(--danger); color: #8f1f1f; }
.gds-alert a { color: inherit; text-decoration: underline; font-weight: 500; }

/* ---------- Tableaux (→ cartes sur mobile) ---------- */
.gds-table-wrap { overflow-x: auto; }
.gds-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.gds-table th { font-size: 12px; font-weight: 500; letter-spacing: var(--ls-button); text-transform: uppercase; color: var(--text-body); text-align: left; padding: 14px 16px; background: var(--surface); white-space: nowrap; }
.gds-table td { padding: 16px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
.gds-table tbody tr:hover { background: #fafbfc; }
.gds-table td .gds-sub { display: block; font-size: 13px; color: var(--text-muted); }
.gds-table a { color: var(--primary); font-weight: 500; }
.gds-table a:hover { color: var(--accent); }
.gds-table--compact td { padding: 11px 14px; }
@media (max-width: 767px) {
	.gds-table--cards thead { display: none; }
	.gds-table--cards, .gds-table--cards tbody, .gds-table--cards tr, .gds-table--cards td { display: block; width: 100%; }
	.gds-table--cards tr { background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); margin-bottom: 16px; padding: 10px 0; }
	.gds-table--cards td { border: 0; padding: 8px 18px; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
	.gds-table--cards td:before { content: attr(data-label); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); text-align: left; }
	.gds-table--cards td[data-label=""]:before { display: none; }
}

/* ---------- Filtres ---------- */
.gds-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.gds-filters .form-control { height: 50px; padding: 10px 18px; font-size: 14px; }
.gds-filters select.form-control { padding-right: 40px; }
.gds-search { position: relative; }
.gds-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.gds-search .form-control { padding-left: 46px; }
.gds-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.gds-toolbar .gds-result-count { font-size: 14px; color: var(--text-muted); }

/* ---------- Pagination (style .styled-pagination du template) ---------- */
.gds-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.gds-pagination button { min-width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; color: var(--primary); font-weight: 500; transition: var(--transition); }
.gds-pagination button:hover:not([disabled]), .gds-pagination button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.gds-pagination button[disabled] { opacity: 0.4; }

/* ---------- Tabs ---------- */
.gds-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.gds-tabs [role="tab"] { background: none; border: 0; padding: 14px 20px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-body); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.gds-tabs [role="tab"][aria-selected="true"] { color: var(--primary); border-bottom-color: var(--accent); font-weight: 500; }
.gds-tabs [role="tab"]:hover { color: var(--primary); }

/* ---------- Dropdown ---------- */
.gds-dropdown { position: relative; display: inline-block; }
.gds-dropdown__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 60; display: none; list-style: none; margin: 0; }
.gds-dropdown.is-open .gds-dropdown__menu { display: block; }
.gds-dropdown__menu a, .gds-dropdown__menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 20px; font-size: 14px; color: var(--text); background: none; border: 0; text-align: left; }
.gds-dropdown__menu a:hover, .gds-dropdown__menu button:hover { background: var(--surface); color: var(--accent); }

/* ---------- Modal ---------- */
.gds-modal-open { overflow: hidden; }
.gds-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gds-modal__backdrop { position: absolute; inset: 0; background: rgba(29, 47, 65, 0.6); }
.gds-modal__dialog { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); animation: gdsIn 0.2s ease; }
.gds-modal__dialog--lg { max-width: 820px; }
.gds-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 24px 30px; border-bottom: 1px solid var(--border-light); }
.gds-modal__header h4 { margin: 0; font-size: 22px; }
.gds-modal__close { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--text-muted); }
.gds-modal__close:hover { color: var(--accent); }
.gds-modal__body { padding: 26px 30px; overflow-y: auto; }
.gds-modal__body .gds-field:last-child { margin-bottom: 0; }
.gds-modal__footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 18px 30px; border-top: 1px solid var(--border-light); background: #fafbfc; }
@keyframes gdsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.gds-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 10100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.gds-toast { display: flex; gap: 12px; align-items: flex-start; background: #fff; box-shadow: var(--shadow-lg); padding: 16px 18px; border-left: 4px solid var(--info); font-size: 14px; line-height: 21px; color: var(--text); animation: gdsIn 0.2s ease; }
.gds-toast > i { margin-top: 3px; }
.gds-toast--success { border-color: var(--success); } .gds-toast--success > i { color: var(--success); }
.gds-toast--error { border-color: var(--danger); } .gds-toast--error > i { color: var(--danger); }
.gds-toast--warning { border-color: var(--warning); } .gds-toast--warning > i { color: var(--warning); }
.gds-toast--info > i { color: var(--info); }
.gds-toast span { flex: 1; }
.gds-toast__close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--text-muted); }
.gds-toast.is-leaving { opacity: 0; transform: translateX(20px); transition: 0.25s; }

/* ---------- Timeline ---------- */
.gds-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.gds-timeline__item { position: relative; padding: 0 0 30px 64px; }
.gds-timeline__item:before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--border); }
.gds-timeline__item:last-child { padding-bottom: 0; }
.gds-timeline__item:last-child:before { display: none; }
.gds-timeline__dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--border); color: var(--border); font-size: 14px; }
.gds-timeline__item.is-pending .gds-timeline__dot i { font-size: 8px; }
.gds-timeline__item.is-completed .gds-timeline__dot { background: var(--success); border-color: var(--success); color: #fff; }
.gds-timeline__item.is-completed:before { background: var(--success); }
.gds-timeline__item.is-current .gds-timeline__dot { background: var(--primary-light); border-color: var(--primary-light); color: #fff; box-shadow: 0 0 0 6px var(--info-bg); }
.gds-timeline__item.is-current .gds-timeline__dot i { animation: fa-spin 2.5s linear infinite; }
.gds-timeline__item.is-action_required .gds-timeline__dot { background: var(--warning); border-color: var(--warning); color: #fff; box-shadow: 0 0 0 6px var(--warning-bg); }
.gds-timeline__item.is-rejected .gds-timeline__dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.gds-timeline__body { padding-top: 8px; }
.gds-timeline__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.gds-timeline__head h6 { margin: 0; font-size: 17px; }
.gds-timeline__head h6 small { font-weight: 400; color: var(--text-muted); font-size: 13px; }
.gds-timeline__state { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.is-current .gds-timeline__state { color: var(--primary-light); font-weight: 500; }
.is-action_required .gds-timeline__state { color: #8a6200; font-weight: 500; }
.is-rejected .gds-timeline__state { color: var(--danger); }
.is-completed .gds-timeline__state { color: #1f7a50; }
.gds-timeline__body time { display: block; font-size: 13px; color: var(--text-muted); line-height: 20px; margin-top: 2px; }
.gds-timeline__body p { margin: 8px 0 0; padding: 10px 14px; background: var(--surface); font-size: 14px; line-height: 22px; color: var(--text); }
.is-action_required .gds-timeline__body p { background: var(--warning-bg); }
.is-pending .gds-timeline__head h6 { color: var(--text-muted); }

/* ---------- Stepper ---------- */
.gds-stepper { display: flex; list-style: none; margin: 0 0 14px; padding: 0; gap: 8px; }
.gds-stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--text-muted); min-width: 0; }
.gds-stepper__num { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); background: #fff; font-weight: 700; color: var(--text-muted); font-size: 14px; }
.gds-stepper li.is-done .gds-stepper__num { background: var(--success); border-color: var(--success); color: #fff; }
.gds-stepper li.is-current .gds-stepper__num { background: var(--accent); border-color: var(--accent); color: #fff; }
.gds-stepper li.is-current { color: var(--text); font-weight: 500; }
.gds-stepper__bar { height: 4px; background: var(--border-light); margin-bottom: 34px; }
.gds-stepper__bar span { display: block; height: 100%; background: var(--accent); transition: width 0.4s ease; }
@media (max-width: 767px) { .gds-stepper__label { display: none; } .gds-stepper li.is-current .gds-stepper__label { display: block; position: absolute; } .gds-stepper { position: relative; padding-bottom: 22px; } .gds-stepper li.is-current .gds-stepper__label { left: 0; right: 0; bottom: 0; } }

/* ---------- Upload & documents ---------- */
.gds-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gds-upload__zone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 20px; border: 2px dashed var(--border); background: #fafbfc; cursor: pointer; transition: var(--transition); margin: 0; }
.gds-upload__zone i { font-size: 30px; color: var(--accent); }
.gds-upload__zone strong { font-size: 15px; color: var(--text); font-weight: 500; }
.gds-upload__zone span { font-size: 13px; color: var(--text-muted); line-height: 18px; }
.gds-upload__zone:hover, .gds-upload__zone.is-drag, .gds-upload__input:focus-visible + .gds-upload__zone { border-color: var(--primary-light); background: var(--info-bg); }
.gds-upload__status { min-height: 22px; margin-top: 8px; font-size: 14px; }
.gds-file-ok { color: #1f7a50; }
.gds-docs { display: grid; gap: 16px; }
.gds-doc { display: grid; grid-template-columns: 50px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--border-light); transition: var(--transition); }
.gds-doc:hover { box-shadow: var(--shadow-sm); }
.gds-doc__icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--primary); font-size: 22px; }
.gds-doc__title { font-size: 16px; font-weight: 500; color: var(--text); margin: 0 0 2px; line-height: 22px; }
.gds-doc__meta { font-size: 13px; color: var(--text-muted); line-height: 20px; }
.gds-doc__comment { font-size: 13px; line-height: 20px; margin-top: 6px; color: var(--danger); }
.gds-doc__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gds-doc.is-replace { border-left: 3px solid var(--danger); }
.gds-doc.is-pending { border-left: 3px solid var(--warning); }
.gds-doc .gds-upload { grid-column: 1 / -1; }
@media (max-width: 599px) { .gds-doc { grid-template-columns: 44px 1fr; } .gds-doc__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Messagerie ---------- */
.gds-inbox { display: grid; grid-template-columns: 320px 1fr; min-height: 560px; background: #fff; box-shadow: var(--shadow-md); }
.gds-inbox__list { border-right: 1px solid var(--border-light); overflow-y: auto; max-height: 680px; }
.gds-inbox__thread { display: block; width: 100%; text-align: left; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--border-light); background: #fff; border-left: 3px solid transparent; transition: var(--transition); }
.gds-inbox__thread:hover { background: #fafbfc; }
.gds-inbox__thread.is-active { background: var(--surface); border-left-color: var(--accent); }
.gds-inbox__thread strong { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--text); }
.gds-inbox__thread.is-unread strong:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.gds-inbox__thread span { display: block; font-size: 13px; color: var(--text-muted); line-height: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gds-inbox__pane { display: flex; flex-direction: column; min-width: 0; }
.gds-inbox__head { padding: 18px 26px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gds-inbox__head h5 { margin: 0; font-size: 17px; }
.gds-inbox__msgs { flex: 1; padding: 26px; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 18px; background: #fafbfc; }
.gds-msg { max-width: 78%; }
.gds-msg__bubble { padding: 14px 18px; background: #fff; box-shadow: var(--shadow-sm); font-size: 15px; line-height: 24px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.gds-msg__meta { font-size: 12px; color: var(--text-muted); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.gds-msg.is-mine { align-self: flex-end; }
.gds-msg.is-mine .gds-msg__bubble { background: var(--primary); color: #fff; }
.gds-msg.is-mine .gds-msg__meta { justify-content: flex-end; }
.gds-msg__att { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; padding: 6px 12px; background: rgba(0,0,0,0.05); font-size: 13px; }
.gds-msg.is-mine .gds-msg__att { background: rgba(255,255,255,0.12); }
.gds-inbox__compose { border-top: 1px solid var(--border-light); padding: 18px 26px; display: flex; gap: 12px; align-items: flex-end; }
.gds-inbox__compose textarea { flex: 1; min-height: 56px; max-height: 180px; resize: vertical; }
@media (max-width: 991px) { .gds-inbox { grid-template-columns: 1fr; } .gds-inbox__list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--border-light); } .gds-msg { max-width: 92%; } }

/* ---------- Notifications ---------- */
.gds-notifs { list-style: none; margin: 0; padding: 0; }
.gds-notif { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: start; padding: 20px; border-bottom: 1px solid var(--border-light); }
.gds-notif.is-unread { background: #f7f9fb; border-left: 3px solid var(--accent); }
.gds-notif__icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--primary); font-size: 18px; }
.gds-notif__title { font-weight: 500; color: var(--text); font-size: 15px; line-height: 22px; }
.gds-notif__title a { color: inherit; }
.gds-notif__title a:hover { color: var(--accent); }
.gds-notif__body, .gds-notif time { display: block; font-size: 13px; color: var(--text-muted); line-height: 20px; }

/* ---------- Empty / loading ---------- */
.gds-empty { text-align: center; padding: 50px 20px; }
.gds-empty > i { font-size: 44px; color: var(--border); margin-bottom: 16px; }
.gds-empty h3, .gds-empty h4 { margin-bottom: 8px; }
.gds-empty p { color: var(--text-muted); margin-bottom: 20px; }
.gds-loading { padding: 40px; text-align: center; color: var(--text-muted); }

/* ---------- Avatar ---------- */
.gds-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.gds-avatar--lg { width: 72px; height: 72px; font-size: 24px; }

/* ---------- Choix (cartes radio : pays / service) ---------- */
.gds-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gds-choice { position: relative; margin: 0; cursor: pointer; }
.gds-choice input { position: absolute; opacity: 0; }
.gds-choice__card { display: flex; gap: 14px; align-items: center; padding: 18px; border: 2px solid var(--border-light); background: #fff; transition: var(--transition); height: 100%; }
.gds-choice__card img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.gds-choice__card i { font-size: 22px; color: var(--accent); width: 42px; text-align: center; }
.gds-choice__card strong { display: block; font-size: 15px; color: var(--text); line-height: 21px; }
.gds-choice__card small { display: block; font-size: 12px; line-height: 17px; color: var(--text-muted); }
.gds-choice:hover .gds-choice__card { border-color: var(--border); box-shadow: var(--shadow-sm); }
.gds-choice input:checked + .gds-choice__card { border-color: var(--accent); background: #fff7f7; }
.gds-choice input:focus-visible + .gds-choice__card { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.gds-choice input:disabled + .gds-choice__card { opacity: 0.45; cursor: not-allowed; }

/* =========================================================
   Authentification (pages publiques avec carte centrée)
   ========================================================= */
.gds-auth-section { padding: 100px 0 120px; background: var(--surface); position: relative; }
.gds-auth-card { max-width: 560px; margin: 0 auto; background: #fff; box-shadow: var(--shadow-md); padding: 50px; border-top: 3px solid var(--accent); }
.gds-auth-card--wide { max-width: 760px; }
.gds-auth-card .sec-title { margin-bottom: 30px; }
.gds-auth-card .sec-title h2 { font-size: 36px; }
.gds-auth-card .theme-btn { width: 100%; }
.gds-auth-foot { text-align: center; margin-top: 26px; font-size: 15px; color: var(--text-body); }
.gds-auth-foot a { color: var(--accent); font-weight: 500; }
.gds-demo { margin-top: 24px; padding: 16px 20px; background: var(--surface); font-size: 13px; line-height: 21px; color: var(--text-body); }
.gds-demo strong { color: var(--text); }
.gds-demo button { background: none; border: 0; padding: 0; color: #3a6693; text-decoration: underline; font-size: 13px; }
@media (max-width: 599px) { .gds-auth-card { padding: 34px 22px; } .gds-auth-section { padding: 60px 0 80px; } }

/* =========================================================
   Espace client (header public + sidebar du template)
   ========================================================= */
.gds-client-section { padding: 70px 0 100px; background: var(--surface); }
.gds-client-side { background: #fff; box-shadow: var(--shadow-md); margin-bottom: 30px; position: sticky; top: 110px; }
.gds-client-side__user { display: flex; gap: 14px; align-items: center; padding: 26px 26px 22px; background: var(--primary); color: #fff; }
.gds-client-side__user strong { display: block; font-size: 16px; line-height: 22px; }
.gds-client-side__user small { color: var(--text-on-dark-muted); font-size: 13px; }
.gds-client-nav { list-style: none; margin: 0; padding: 10px 0; }
.gds-client-nav a, .gds-client-nav button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 26px; font-size: 15px; color: var(--text); background: none; border: 0; border-left: 3px solid transparent; transition: var(--transition); text-align: left; }
.gds-client-nav a i, .gds-client-nav button i { width: 18px; text-align: center; color: var(--text-muted); transition: var(--transition); }
.gds-client-nav a:hover, .gds-client-nav button:hover { background: var(--surface); color: var(--accent); }
.gds-client-nav a:hover i { color: var(--accent); }
.gds-client-nav li.current a { border-left-color: var(--accent); background: var(--surface); font-weight: 500; }
.gds-client-nav li.current a i { color: var(--accent); }
.gds-client-nav .gds-count { margin-left: auto; }
.gds-client-nav .is-sep { border-top: 1px solid var(--border-light); margin-top: 8px; padding-top: 8px; }
.gds-client-cta { padding: 0 26px 26px; }
.gds-client-cta .theme-btn { width: 100%; }
.gds-page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.gds-page-head h2 { font-size: 34px; margin: 0; line-height: 1.2; }
.gds-page-head p { margin: 6px 0 0; color: var(--text-body); }
.gds-hero-case { background: var(--primary); color: #fff; padding: 34px; margin-bottom: 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.gds-hero-case:after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.gds-hero-case h4 { color: #fff; margin: 6px 0 14px; font-size: 26px; }
.gds-hero-case .gds-eyebrow { color: var(--text-on-dark-muted); }
.gds-hero-case dl { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; font-size: 14px; }
.gds-hero-case dt { color: var(--text-on-dark-muted); font-weight: 400; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.gds-hero-case dd { margin: 0; font-weight: 500; }
@media (max-width: 991px) { .gds-client-side { position: static; } .gds-client-section { padding: 40px 0 70px; } }
@media (max-width: 599px) { .gds-hero-case { grid-template-columns: 1fr; padding: 26px; } .gds-card { padding: 24px 20px; } .gds-page-head h2 { font-size: 28px; } }

/* =========================================================
   Back-office (mise en page application, mêmes tokens)
   ========================================================= */
.gds-admin-body { background: var(--surface); }
.gds-admin { display: flex; min-height: 100vh; }
.gds-admin__sidebar { width: var(--sidebar-width); background: var(--primary); color: #fff; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 100; overflow-y: auto; transition: transform 0.3s ease; }
.gds-admin__brand { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid rgba(255,255,255,0.08); min-height: var(--topbar-height); }
.gds-admin__brand small { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-top: 4px; }
.gds-admin__nav { list-style: none; margin: 0; padding: 16px 0; flex: 1; }
.gds-admin__nav .is-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.68); padding: 18px 26px 8px; }
.gds-admin__nav a, .gds-admin__nav button { display: flex; align-items: center; gap: 14px; padding: 11px 26px; color: rgba(255,255,255,0.75); font-size: 14px; border-left: 3px solid transparent; transition: var(--transition); background: none; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.gds-admin__nav a i, .gds-admin__nav button i { width: 18px; text-align: center; opacity: 0.7; }
.gds-admin__nav a:hover, .gds-admin__nav button:hover { color: #fff; background: rgba(255,255,255,0.05); }
.gds-admin__nav li.current a { color: #fff; border-left-color: var(--accent); background: rgba(255,255,255,0.08); }
.gds-admin__nav li.current a i { color: var(--accent); opacity: 1; }
.gds-admin__nav .gds-count { margin-left: auto; }
.gds-admin__close { display: none; background: none; border: 0; color: #fff; font-size: 26px; }
.gds-admin__main { flex: 1; margin-left: var(--sidebar-width); min-width: 0; display: flex; flex-direction: column; }
.gds-admin__topbar { height: var(--topbar-height); background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.04); display: flex; align-items: center; gap: 16px; padding: 0 30px; position: sticky; top: 0; z-index: 50; }
.gds-admin__topbar h1 { font-size: 20px; margin: 0; flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gds-admin__burger { display: none; }
.gds-admin__user { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; }
.gds-admin__user strong { display: block; font-size: 14px; color: var(--text); line-height: 18px; }
.gds-admin__user small { font-size: 12px; color: var(--text-muted); }
.gds-admin__bell { position: relative; }
.gds-admin__bell .gds-count { position: absolute; top: -6px; right: -6px; }
.gds-admin__content { padding: 34px 30px 60px; flex: 1; }
.gds-admin__content .gds-page-head h2 { font-size: 28px; }
.gds-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 10px; }
.gds-chart__bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; font-size: 12px; color: var(--text-muted); min-width: 0; }
.gds-chart__bar span { display: block; width: 100%; max-width: 46px; background: var(--primary-light); min-height: 2px; transition: height 0.6s ease; position: relative; }
.gds-chart__bar span:hover { background: var(--accent); }
.gds-chart__bar b { font-size: 13px; color: var(--text); font-weight: 500; }
.gds-chart__bar em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gds-hbars { list-style: none; margin: 0; padding: 0; }
.gds-hbars li { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; margin-bottom: 12px; }
.gds-hbars li > span:nth-child(2) { height: 10px; background: var(--surface); position: relative; }
.gds-hbars li i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.gds-hbars li b { text-align: right; font-weight: 500; color: var(--text); }
.gds-overlay { display: none; }
@media (max-width: 1199px) {
	.gds-admin__sidebar { transform: translateX(-100%); }
	.gds-admin__sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
	.gds-admin__sidebar.is-open ~ .gds-overlay, .gds-admin__sidebar.is-open + .gds-overlay { display: block; position: fixed; inset: 0; background: rgba(29,47,65,0.5); z-index: 99; }
	.gds-admin__main { margin-left: 0; }
	.gds-admin__burger { display: inline-flex; }
	.gds-admin__close { display: block; }
}
@media (max-width: 599px) {
	.gds-admin__content { padding: 24px 16px 50px; }
	.gds-admin__topbar { padding: 0 16px; gap: 10px; }
	.gds-admin__user > span { display: none; }
	.gds-dl { grid-template-columns: 1fr; gap: 2px 0; }
	.gds-dl dd { margin-bottom: 10px; }
	.gds-hbars li { grid-template-columns: 100px 1fr 30px; }
}

/* ---------- Impression (fiche dossier, suivi) ---------- */
@media print {
	.main-header, .main-footer, .gds-client-side, .gds-admin__sidebar, .gds-admin__topbar, .scroll-to-top, .gds-actions, .page-title { display: none !important; }
	.gds-admin__main { margin: 0; }
	.gds-card { box-shadow: none; border: 1px solid #ccc; }
}

/* Correctifs : lisibilité du nom, cartes de chiffres, tableaux compacts */
.gds-client-side__user strong, .gds-client-side__user strong[data-user-name] { color: #fff; }
.gds-stat__value, .gds-stat__label { display: block; }
.gds-mono { white-space: nowrap; }
.gds-table--compact { font-size: 14px; }
.gds-table--compact th { padding: 12px; }
[hidden] { display: none !important; }
.gds-table-wrap { position: relative; }
.gds-admin__content .gds-table td, .gds-admin__content .gds-table th { padding-left: 12px; padding-right: 12px; }
.gds-admin__content .gds-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gds-table--compact .gds-badge { white-space: normal; }

/* Espace client sur tablette / mobile : barre d'onglets fixée en bas + panneau « Menu » (plus de défilement horizontal) */
.gds-tabbar, .gds-sheet, .gds-sheet-backdrop { display: none; }
@media (max-width: 991px) {
	.gds-client-side { display: none; }
	.gds-client-section { padding-bottom: 110px; }
	.gds-client .scroll-to-top { bottom: calc(86px + env(safe-area-inset-bottom)); }
	.gds-tabbar { display: block; position: fixed; z-index: 990; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -6px 24px rgba(29, 47, 65, .12); padding-bottom: env(safe-area-inset-bottom); }
	.gds-tabbar ul { list-style: none; margin: 0 auto; padding: 0 4px; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 640px; }
	.gds-tabbar li { position: relative; }
	.gds-tabbar a, .gds-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 62px; padding: 8px 2px 6px; background: none; border: 0; color: var(--text-muted); font-size: 11px; line-height: 1.2; font-weight: 500; text-decoration: none; position: relative; }
	.gds-tabbar a i, .gds-tabbar button i { font-size: 19px; }
	.gds-tabbar li.current a { color: var(--accent); }
	.gds-tabbar li.current a::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
	.gds-tabbar .gds-count { position: absolute; top: 6px; left: 54%; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; padding: 0 5px; }
	.gds-tabbar__main a { color: var(--text); }
	.gds-tabbar__plus { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 73, 74, .45); border: 4px solid #fff; }
	.gds-tabbar__plus i { font-size: 18px !important; }
	.gds-tabbar__main.current a::before { display: none; }
	.gds-sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 995; background: rgba(20, 33, 46, .55); animation: gds-fade .2s ease; }
	.gds-sheet:not([hidden]) { display: block; position: fixed; z-index: 996; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); animation: gds-sheet-up .25s ease; }
	.gds-sheet__head { display: flex; align-items: center; gap: 12px; padding: 18px 4px 14px; border-bottom: 1px solid var(--border-light); margin-bottom: 14px; }
	.gds-sheet__head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--border); }
	.gds-sheet__head strong { display: block; color: var(--text); font-size: 16px; line-height: 22px; }
	.gds-sheet__head small { color: var(--text-muted); font-size: 13px; }
	.gds-sheet__close { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); font-size: 24px; line-height: 1; color: var(--text); }
	.gds-sheet__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.gds-sheet__grid a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 6px; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 13px; line-height: 1.25; font-weight: 500; text-align: center; text-decoration: none; }
	.gds-sheet__grid a i { font-size: 22px; color: var(--primary-light); }
	.gds-sheet__grid li.current a { background: var(--accent); color: #fff; }
	.gds-sheet__grid li.current a i { color: #fff; }
	.gds-sheet__grid .gds-count { position: absolute; top: 8px; right: 10px; }
	.gds-sheet__logout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--danger); font-size: 15px; font-weight: 500; }
	body.gds-sheet-open { overflow: hidden; }
}
@media (max-width: 359px) { .gds-sheet__grid { grid-template-columns: repeat(2, 1fr); } .gds-tabbar a, .gds-tabbar button { font-size: 10px; } }
@keyframes gds-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gds-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gds-sheet, .gds-sheet-backdrop { animation: none !important; } }
}
.gds-doc__meta a, .gds-table td a:not(.gds-btn-ghost), .gds-notif__title a { text-decoration: underline; text-underline-offset: 2px; }

/* Documents remis au client (dossier traité – finalisé) */
.gds-card--success { border-top: 3px solid #1f8a4c; }
.gds-deliverables { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gds-deliverable { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid #e3e7ec; border-radius: 6px; background: #fff; }
.gds-deliverable__thumb { width: 72px; height: 72px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f4f5f8; }
.gds-deliverable__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gds-deliverable__thumb--pdf { color: #b42318; font-size: 30px; }
.gds-deliverable__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gds-deliverable__body strong, .gds-deliverable__body span { overflow-wrap: anywhere; }
.gds-deliverable__actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 599px) {
	.gds-deliverable { grid-template-columns: 56px 1fr; }
	.gds-deliverable__thumb { width: 56px; height: 56px; }
	.gds-deliverable__actions { grid-column: 1 / -1; }
	.gds-deliverable__actions .theme-btn { flex: 1; justify-content: center; }
}

/* Documents remis au client (dossier traité – finalisé) */
.gds-card--success { border-top: 3px solid #1f8a4c; }
.gds-deliverables { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gds-deliverable { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid #e3e7ec; border-radius: 6px; background: #fff; }
.gds-deliverable__thumb { width: 72px; height: 72px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f4f5f8; }
.gds-deliverable__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gds-deliverable__thumb--pdf { color: #b42318; font-size: 30px; }
.gds-deliverable__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gds-deliverable__body strong, .gds-deliverable__body span { overflow-wrap: anywhere; }
.gds-deliverable__actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 599px) {
	.gds-deliverable { grid-template-columns: 56px 1fr; }
	.gds-deliverable__thumb { width: 56px; height: 56px; }
	.gds-deliverable__actions { grid-column: 1 / -1; }
	.gds-deliverable__actions .theme-btn { flex: 1; justify-content: center; }
}

/* Présence des clients (en ligne / hors ligne) */
.gds-name-presence { display: inline-flex; align-items: center; gap: 8px; }
.gds-presence { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #b8bec6; box-shadow: 0 0 0 2px #fff; flex: none; }
.gds-presence.is-online { background: #1f9d55; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(31, 157, 85, 0.25); }
h2 .gds-presence { width: 14px; height: 14px; }
.gds-presence-label { display: block; font-size: 12px; line-height: 1.4; color: #5f646a; margin-top: 2px; }
.gds-presence-label.is-online { color: #17773f; font-weight: 600; }
.gds-page-head .gds-presence-label { font-size: 14px; margin: 4px 0 6px; }
h2.gds-name-presence { display: flex; }

/* Décors (cercles) des bandeaux : jamais au-dessus des boutons */
.gds-hero-case:after { pointer-events: none; z-index: 0; }
.gds-hero-case > * { position: relative; z-index: 1; }
.gds-btn-icon--danger:hover { background: #b42318; border-color: #b42318; color: #fff; }

/* Notification : toute la zone est cliquable (lien étiré sur la ligne) */
.gds-notif { position: relative; cursor: pointer; transition: background 0.15s ease; }
.gds-notif:hover { background: #eef2f6; }
.gds-notif__open { color: inherit; background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.gds-notif__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gds-notif__open:focus-visible { outline: none; }
.gds-notif:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.gds-notif [data-toggle] { position: relative; z-index: 2; }

/* Nouvelle demande : bénéficiaire (moi / un proche) et démarches déjà demandées */
.gds-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 599px) { .gds-choices--2 { grid-template-columns: 1fr; } }
.gds-choice.is-disabled { cursor: not-allowed; }
.gds-choice.is-disabled .gds-choice__card { opacity: 0.7; background: #f4f5f8; }
.gds-choice__warn { display: block; color: #8a4b00; font-weight: 500; }

/* Messagerie : une conversation par client */
.gds-inbox--single { grid-template-columns: 1fr; }
.gds-inbox--single .gds-inbox__list { display: none; }
.gds-msg__case { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-bottom: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(29, 47, 65, 0.08); color: inherit; text-decoration: none; }
.gds-msg.is-mine .gds-msg__case { background: rgba(255, 255, 255, 0.18); }
.gds-msg__case + br { display: none; }
.gds-inbox__msgs .gds-msg__bubble .gds-msg__case { display: flex; width: fit-content; }
.gds-inbox__thread .gds-name-presence { display: inline-flex; white-space: normal; overflow: visible; color: var(--text); font-size: 14px; line-height: 20px; }
.gds-inbox__thread .gds-presence { display: inline-block; width: 9px; height: 9px; overflow: visible; }
.gds-msg.is-mine .gds-msg__att { color: #fff; background: rgba(255, 255, 255, 0.14); }
.gds-msg.is-mine .gds-msg__att:hover { color: #fff; background: rgba(255, 255, 255, 0.24); }

/* =====================================================================
   MyLicenseNow — compléments (v3) : bandeau cookies, Kanban, statistiques,
   double authentification, réponses toutes prêtes
   ===================================================================== */
.gds-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.mln-cookies { position: fixed; z-index: 9990; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: #fff; color: var(--text); border-left: 3px solid var(--accent); box-shadow: 0 10px 40px rgba(29, 47, 65, .18); padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; line-height: 1.6; }
.mln-cookies p { margin: 0; flex: 1 1 320px; }
.mln-cookies p .fa { color: var(--accent); margin-right: 4px; }
.mln-cookies a { color: var(--primary-light); text-decoration: underline; }
.mln-cookies__actions { display: flex; gap: 8px; align-items: center; }
.mln-cookies--details { display: block; max-height: 80vh; overflow: auto; }
.mln-cookies--details h5 { margin-bottom: 10px; }

/* Kanban */
.gds-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.gds-kanban__col { background: var(--surface); border-top: 3px solid var(--border); min-height: 200px; display: flex; flex-direction: column; }
.gds-kanban__col--info { border-top-color: var(--info); } .gds-kanban__col--warning { border-top-color: var(--warning); } .gds-kanban__col--danger { border-top-color: var(--danger); }
.gds-kanban__col--primary { border-top-color: var(--primary); } .gds-kanban__col--success { border-top-color: var(--success); } .gds-kanban__col--muted { border-top-color: #9aa3ab; }
.gds-kanban__col header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.gds-kanban__col h3 { font-size: 14px; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.gds-kanban__col.is-over { outline: 2px dashed var(--primary-light); outline-offset: -2px; background: var(--info-bg); }
.gds-kanban__cards { padding: 0 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.gds-kanban__card { background: #fff; padding: 12px; box-shadow: 0 2px 8px rgba(29, 47, 65, .08); border-left: 3px solid transparent; cursor: grab; font-size: 14px; line-height: 1.5; }
.gds-kanban__card.is-dragging { opacity: .5; }
.gds-kanban__card.is-stuck { border-left-color: var(--danger); } .gds-kanban__card.is-waiting { border-left-color: var(--warning); }
.gds-kanban__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.gds-kanban__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.gds-kanban__flag { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9aa3ab; vertical-align: middle; }
.gds-kanban__flag.is-stuck { background: var(--danger); } .gds-kanban__flag.is-waiting { background: var(--warning); }
.gds-kanban__move { margin-top: 8px; width: 100%; font-size: 12px; padding: 4px 6px; border: 1px solid var(--border); background: var(--surface-input); }
.gds-kanban__empty { color: var(--text-muted); font-size: 13px; margin: 0; padding: 8px 2px; }
.gds-avatar--xs { width: 26px; height: 26px; font-size: 11px; line-height: 26px; flex: 0 0 26px; }

/* Statistiques (une série = une couleur ; deux séries = paire bleu / orange validée, avec légende) */
.gds-series-1 { background: #2a78d6 !important; } .gds-series-2 { background: #eb6834 !important; }
.gds-legend { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.gds-legend__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.gds-chart--grouped { display: flex; align-items: flex-end; gap: 6px; min-height: 190px; }
.gds-chart__group { flex: 1; display: flex; flex-direction: column; align-items: center; }
.gds-chart__pair { display: flex; align-items: flex-end; gap: 2px; }
.gds-chart--grouped .gds-chart__bar span { width: 12px; border-radius: 4px 4px 0 0; display: block; min-height: 0; }
.gds-chart--grouped .gds-chart__bar b { display: block; text-align: center; font-size: 11px; color: var(--text); min-height: 15px; }
.gds-chart--grouped em { font-style: normal; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.gds-hbars--stats li i { background: #2a78d6; border-radius: 0 4px 4px 0; }
.gds-data-table { margin-top: 12px; font-size: 13px; } .gds-data-table summary { cursor: pointer; color: var(--primary-light); }

/* Double authentification, listes, textes */
.gds-2fa-setup { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.gds-2fa-qr { background: #fff; padding: 10px; border: 1px solid var(--border); width: 240px; }
@media (max-width: 767px) { .gds-2fa-setup { grid-template-columns: 1fr; } }
.gds-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 6px 24px; padding-left: 20px; font-size: 16px; margin: 12px 0 16px; }
.gds-steps-mini { padding-left: 20px; margin-bottom: 16px; } .gds-steps-mini li { margin-bottom: 6px; }
.gds-list-plain { list-style: none; padding: 0; margin: 0 0 8px; } .gds-list-plain li { padding: 4px 0; border-bottom: 1px solid var(--border-light); }
.gds-pre { white-space: pre-wrap; background: var(--surface); padding: 12px; font-size: 14px; line-height: 1.6; margin: 0; }
.gds-tpl-picker { margin-bottom: 6px; } .gds-tpl-picker select { max-width: 380px; font-size: 13px; padding: 4px 8px; height: auto; }
@media print { .mln-cookies { display: none !important; } }
.gds-hbars--stats li { grid-template-columns: minmax(120px, 190px) 1fr 120px; } .gds-hbars--stats li b { white-space: nowrap; font-weight: 500; }
.gds-stats.gds-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 991px) { .gds-stats.gds-stats--3 { grid-template-columns: 1fr; } }
.gds-code-input { font-size: 26px; letter-spacing: .45em; max-width: 240px; text-align: center; }

/* Liste des règles du mot de passe (cochées en direct) et correspondance de la confirmation */
.gds-pw-rules { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; font-size: 13px; line-height: 1.5; }
.gds-pw-rules li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); transition: color .2s; }
.gds-pw-rules li i { font-size: 11px; color: #b9c1c8; width: 14px; text-align: center; transition: color .2s, transform .2s; }
.gds-pw-rules li.is-ok { color: var(--success); }
.gds-pw-rules li.is-ok i { color: var(--success); font-size: 14px; transform: scale(1.05); }
.gds-pw-level { display: block; font-size: 12px; line-height: 18px; color: var(--text-muted); min-height: 18px; }
.gds-pw-level.is-ok { color: var(--success); font-weight: 500; }
.gds-pw-match { font-size: 13px; margin-top: 6px; min-height: 20px; }
.gds-pw-match.is-ok { color: var(--success); font-weight: 500; }
.gds-pw-match.is-ko { color: var(--danger); }

/* Espace client : la page commence par son contenu (plus de grande image d'en-tête) */
.gds-client .gds-client-section { padding-top: 50px; }
.gds-apphead { display: none; }
@media (max-width: 991px) {
	/* En-tête compact façon application (logo, langue, notifications, menu) à la place de l'en-tête du site */
	.gds-client .main-header { display: none; }
	.gds-apphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 980; height: 60px; padding: 0 14px; padding-top: env(safe-area-inset-top); background: #fff; box-shadow: 0 2px 14px rgba(29, 47, 65, .08); }
	.gds-apphead__logo img { display: block; height: 38px; width: auto; }
	.gds-apphead__actions { display: flex; align-items: center; gap: 6px; }
	.gds-apphead__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 21px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
	.gds-apphead__btn i { font-size: 17px; }
	.gds-apphead__btn .gds-flag { width: 20px; height: auto; border-radius: 2px; }
	.gds-apphead__bell .gds-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; padding: 0 5px; }
	.gds-apphead__avatar { border: 0; padding: 0; background: none; border-radius: 50%; }
	.gds-apphead__avatar .gds-avatar { width: 42px; height: 42px; font-size: 15px; }
	.gds-client .gds-client-section { padding-top: 22px; }
	.gds-sheet__site { text-align: center; font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }
	.gds-sheet__site a { color: var(--primary-light); text-decoration: underline; }
}

/* Messagerie sur téléphone : champ de saisie sur toute la largeur, boutons en dessous */
@media (max-width: 767px) {
	.gds-inbox__compose { flex-wrap: wrap; padding: 14px; gap: 10px; }
	.gds-inbox__compose > div { flex: 1 1 100% !important; width: 100%; }
	.gds-inbox__compose textarea { width: 100%; min-height: 110px; font-size: 16px; line-height: 1.5; }
	.gds-inbox__compose > label.gds-btn-icon { flex: 0 0 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; }
	.gds-inbox__compose > button[type=submit] { flex: 1 1 auto; height: 52px; padding: 0 18px; }
	.gds-inbox__msgs { min-height: 0; max-height: 52vh; }
}
@media (max-width: 767px) {
	.gds-inbox__compose > button[type=submit] { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
	.gds-inbox__compose > button[type=submit] .btn-title { display: inline-flex; align-items: center; gap: 8px; }
}
@media (max-width: 991px) {
	/* Espace client sur téléphone : la barre d'onglets et le menu remplacent le pied de page et le bouton « remonter » */
	.gds-client .main-footer, .gds-client .scroll-to-top { display: none !important; }
}

/* Photos de profil */
.gds-avatar.has-photo { background: var(--surface); padding: 0; overflow: hidden; }
.gds-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.gds-avatar--sm { width: 34px; height: 34px; font-size: 12px; flex: 0 0 34px; }
.gds-avatar--xl { width: 96px; height: 96px; font-size: 30px; flex: 0 0 96px; }
.gds-avatar.is-loading img { opacity: .5; }
.gds-photo { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.gds-client-ident { display: flex; gap: 16px; align-items: center; }
.gds-client-cell { display: flex; gap: 10px; align-items: center; }
.gds-thread-name { display: flex; gap: 8px; align-items: center; }
/* Petit menu sous la photo (téléphone) */
.gds-usermenu { position: relative; }
.gds-usermenu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; min-width: 210px; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 12px 34px rgba(29, 47, 65, .2); }
.gds-usermenu__list a, .gds-usermenu__list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 15px; text-decoration: none; text-align: left; }
.gds-usermenu__list a:hover, .gds-usermenu__list button:hover { background: var(--surface); }
.gds-usermenu__list i { width: 18px; text-align: center; color: var(--text-muted); }
.gds-usermenu__list button { color: var(--danger); } .gds-usermenu__list button i { color: var(--danger); }

/* Bulle des notifications (en-tête mobile de l'espace client) */
.gds-notifpop { position: relative; }
.gds-notifpop__panel { position: absolute; right: -54px; top: calc(100% + 10px); z-index: 1000; width: min(340px, calc(100vw - 24px)); background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(29, 47, 65, .22); overflow: hidden; }
.gds-notifpop__panel::before { content: ""; position: absolute; top: -7px; right: 69px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); box-shadow: -2px -2px 4px rgba(29, 47, 65, .05); }
.gds-notifpop__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border-light); }
.gds-notifpop__head strong { font-size: 16px; color: var(--text); }
.gds-notifpop__head .gds-linkbtn { font-size: 13px; color: var(--primary-light); }
.gds-notifpop__list { list-style: none; margin: 0; padding: 4px 0; max-height: min(58vh, 420px); overflow-y: auto; }
.gds-notifpop__item a { position: relative; display: flex; gap: 12px; padding: 12px 34px 12px 16px; color: var(--text); text-decoration: none; }
.gds-notifpop__item a:hover, .gds-notifpop__item a:focus { background: var(--surface); }
.gds-notifpop__item.is-unread a { background: #fff6f6; }
.gds-notifpop__icon { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.gds-notifpop__item.is-unread .gds-notifpop__icon { background: var(--accent); color: #fff; }
.gds-notifpop__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; }
.gds-notifpop__text strong { font-size: 14px; font-weight: 600; color: var(--text); }
.gds-notifpop__text span { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gds-notifpop__text time { font-size: 12px; color: var(--text-muted); }
.gds-notifpop__dot { position: absolute; right: 14px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.gds-notifpop__empty { padding: 26px 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
.gds-notifpop__all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--border-light); font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.gds-notifpop__all:hover { background: var(--surface); color: var(--accent); }
.gds-notifpop__panel { overflow: visible; }
.gds-notifpop__head { border-radius: 14px 14px 0 0; background: #fff; }
.gds-notifpop__all { border-radius: 0 0 14px 14px; }

/* Choix des destinataires (recherche + étiquettes) */
.gds-picker { position: relative; }
.gds-picker__chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gds-picker__chips:empty { display: none; }
.gds-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border-radius: 20px; background: var(--info-bg); color: var(--text); font-size: 13px; line-height: 1.2; }
.gds-chip .gds-avatar--xs { width: 24px; height: 24px; line-height: 24px; font-size: 10px; flex: 0 0 24px; }
.gds-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(29, 47, 65, .08); color: var(--text); font-size: 16px; line-height: 1; }
.gds-chip button:hover { background: var(--danger); color: #fff; }
.gds-picker__results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(29, 47, 65, .18); }
.gds-picker__opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.gds-picker__opt span { display: flex; flex-direction: column; min-width: 0; }
.gds-picker__opt strong { font-size: 14px; font-weight: 500; color: var(--text); }
.gds-picker__opt small { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gds-picker__opt.is-active, .gds-picker__opt:hover { background: var(--surface); }
.gds-picker__none { padding: 12px; font-size: 13px; color: var(--text-muted); }
/* Boutons radio (choix des destinataires…) : texte normal, espacé du bouton */
fieldset.gds-field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.gds-field legend { font-size: inherit; float: none; width: auto; }
.gds-check input[type="radio"] { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--accent); }
label.gds-check { display: flex; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 15px; color: var(--text); margin-bottom: 8px; }

.gds-picker__results { max-height: 360px; }
.gds-picker__bar { position: sticky; top: -4px; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; margin: -4px -4px 4px; background: #fff; border-bottom: 1px solid var(--border-light); font-size: 12px; color: var(--text-muted); }
.gds-picker__bar .gds-linkbtn { font-size: 12px; color: var(--primary-light); font-weight: 500; }
.gds-picker__box { flex: 0 0 20px; height: 20px; border: 2px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 11px; background: #fff; }
.gds-picker__opt.is-chosen .gds-picker__box { background: var(--accent); border-color: var(--accent); color: #fff; }
.gds-picker__opt.is-chosen { background: #fff6f6; }
.gds-picker__opt em.gds-badge { font-style: normal; font-size: 10px; padding: 1px 6px; vertical-align: 1px; }
.gds-picker__results { max-height: min(360px, 55vh); }
.gds-picker__opt { padding: 6px 10px; line-height: 1.3; }
.gds-picker__opt strong, .gds-picker__opt small { line-height: 1.3; }
.gds-picker__opt .gds-avatar--sm { width: 30px; height: 30px; line-height: 30px; flex-basis: 30px; }

.gds-chip--more { border: 0; padding: 5px 12px; font-weight: 600; color: var(--primary-light); cursor: pointer; }
.gds-picker__chips li { display: inline-flex; align-items: center; }

/* Champ de texte réglable : poignée à glisser + bouton agrandir / réduire */
.gds-rz { display: flex; flex-direction: column; width: 100%; }
.gds-rz textarea { resize: none !important; max-height: none !important; min-height: 64px !important; transition: height .12s ease; }
.gds-rz.is-dragging textarea { transition: none; }
.gds-rz__bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.gds-rz__handle { flex: 1; height: 18px; padding: 0; border: 0; background: none; cursor: ns-resize; touch-action: none; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.gds-rz__handle span { width: 46px; height: 5px; border-radius: 5px; background: var(--border); transition: background .15s, width .15s; }
.gds-rz__handle:hover span, .gds-rz__handle:focus-visible span, .gds-rz.is-dragging .gds-rz__handle span { background: var(--primary-light); width: 64px; }
.gds-rz__toggle { flex: 0 0 auto; border: 0; background: none; padding: 2px 4px; font-size: 12px; color: var(--primary-light); white-space: nowrap; }
.gds-rz__toggle:hover { text-decoration: underline; }
@media (max-width: 767px) {
	.gds-rz__handle { height: 26px; }
	.gds-rz__handle span { width: 60px; height: 6px; }
	.gds-rz__toggle { font-size: 13px; padding: 6px; }
}
.gds-rz textarea { flex: none !important; }

.gds-inbox__compose, form[data-quick-msg], #broadcast-form { scroll-margin-bottom: 24px; }
@media (max-width: 991px) { .gds-client .gds-inbox__compose { scroll-margin-bottom: 100px; } }

/* Choix de la langue dans l'en-tête mobile de l'espace client */
.gds-langpick { position: relative; }
.gds-langpick__btn { gap: 6px; padding: 0 10px 0 12px; border: 0; }
.gds-langpick__caret { font-size: 10px !important; color: var(--text-muted); transition: transform .2s; }
.gds-langpick.is-open .gds-langpick__caret { transform: rotate(180deg); }
.gds-langpick__list { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); z-index: 1000; min-width: 170px; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 12px 34px rgba(29, 47, 65, .2); }
.gds-langpick__list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--text); font-size: 15px; text-decoration: none; }
.gds-langpick__list a:hover, .gds-langpick__list a:focus { background: var(--surface); }
.gds-langpick__list .gds-flag { width: 22px; height: auto; border-radius: 2px; }
.gds-langpick__list a[aria-checked="true"] { font-weight: 600; background: var(--surface); }

/* Informations : pense-bête des boîtes mail */
.gds-mbx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gds-mbx-grid > .gds-card { margin: 0; }
.gds-mbx { display: flex; flex-direction: column; }
.gds-mbx__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gds-mbx__head h5 { flex: 1; margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.gds-mbx__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--primary-light); flex: none; }
.gds-mbx__rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 12px; align-items: center; }
.gds-mbx__rows dt { font-size: 13px; font-weight: 500; color: var(--muted, #5f646a); }
.gds-mbx__rows dd { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.gds-mbx__val { overflow-wrap: anywhere; min-width: 0; }
.gds-mbx__rows .gds-btn-icon { width: 32px; height: 32px; flex: none; }
.gds-mbx__link { color: var(--primary-light); overflow-wrap: anywhere; }
.gds-mbx__note { margin: 0 0 14px; padding: 10px 12px; background: var(--surface); border-radius: 8px; font-size: 14px; }
.gds-mbx__open { margin-top: auto; align-self: flex-start; }
.gds-mbx__pwfield { display: flex; gap: 6px; align-items: center; }
.gds-mbx__pwfield .form-control { flex: 1; }
@media (max-width: 575px) { .gds-mbx-grid { grid-template-columns: 1fr; } }

/* Espace client : identifiants de suivi (numéro + code d'accès) toujours visibles dans le dossier */
.gds-access { border-left: 4px solid var(--primary-light); }
.gds-access__intro { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.gds-access__intro h5 { margin: 0 0 4px; }
.gds-access__intro p { margin: 0; font-size: 14px; color: var(--muted, #5f646a); }
.gds-access__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--surface); color: var(--primary-light); flex: none; font-size: 18px; }
.gds-access__codes { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; }
.gds-access__item { display: flex; flex-direction: column; gap: 2px; }
.gds-access__item span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5f646a); }
.gds-access__item strong { font-size: 22px; color: var(--primary); letter-spacing: .06em; }
.gds-access__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
@media (max-width: 575px) { .gds-access__actions { margin-left: 0; width: 100%; } .gds-access__item strong { font-size: 19px; } }
