/* Boxing Sport Foundation — espace de gestion */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-700.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 100 900; font-display: swap; src: url(../fonts/big-shoulders-display.woff2) format("woff2"); }

:root {
	--nuit: #0F1C33;
	--nuit-2: #1A2B4A;
	--rouge: #C8102E;
	--rouge-2: #A50D26;
	--bleu: #2453C8;
	--or: #CBA02F;
	--toile: #EEF0F2;
	--ligne: #DCE0E6;
	--texte: #0F1C33;
	--doux: #5B6475;
	--blanc: #fff;
	--vert: #1F8A5B;
	--r: 10px;
	--display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--body: "Barlow", system-ui, sans-serif;
	--ombre: 0 1px 2px rgb(15 28 51 / .06), 0 4px 16px rgb(15 28 51 / .06);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--body); color: var(--texte); background: var(--toile); }
a { color: var(--bleu); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.g-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-muted { color: var(--doux); }
.g-small { font-size: 13px; }
.g-block { display: block; }
[hidden] { display: none !important; }

/* Cordes du ring */
.g-ropes { display: grid; gap: 6px; width: 120px; }
.g-ropes span { display: block; height: 4px; border-radius: 4px; }
.g-ropes span:nth-child(1) { background: var(--rouge); }
.g-ropes span:nth-child(2) { background: #fff; }
.g-ropes span:nth-child(3) { background: var(--bleu); }
.g-ropes.is-mini { width: 22px; gap: 3px; }
.g-ropes.is-mini span { height: 3px; }
.g-boot { display: grid; place-items: center; min-height: 100vh; background: var(--nuit); }
/* boot */ .g-boot .g-ropes span { animation: g-pulse 1s ease-in-out infinite alternate; }
/* boot */ .g-boot .g-ropes span:nth-child(2) { animation-delay: .15s; }
/* boot */ .g-boot .g-ropes span:nth-child(3) { animation-delay: .3s; }
@keyframes g-pulse { from { transform: scaleX(.3); opacity: .5; } to { transform: scaleX(1); opacity: 1; } }

/* Mise en page */
.g-app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.g-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--nuit); color: #C9D2E3; padding: 20px 14px; overflow-y: auto; }
.g-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 4px 10px 22px; }
.g-brand__logo { height: 30px; width: auto; display: block; }
.g-brand__name { padding-left: 12px; border-left: 1px solid var(--nuit-2); font-size: 13px; font-weight: 600; color: #7F8BA3; }
.g-nav { flex: 1; }
.g-nav__group { margin-bottom: 18px; }
.g-nav__title { margin: 0 10px 6px; font-size: 12px; font-weight: 600; color: #7F8BA3; }
.g-nav__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 500; }
.g-nav__item:hover { background: var(--nuit-2); color: #fff; }
.g-nav__item.is-active { background: #fff; color: var(--nuit); }
.g-nav__item.is-active .g-icon { color: var(--rouge); }
.g-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.g-side__foot { border-top: 1px solid var(--nuit-2); padding-top: 14px; }
.g-me { display: flex; align-items: center; gap: 10px; padding: 0 10px 10px; color: #fff; font-weight: 600; }
.g-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.g-main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; outline: none; }
.g-mobilebar { display: none; }

/* En-têtes */
.g-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.g-head h1 { margin: 0; font: 800 clamp(30px, 4vw, 42px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.g-head p { margin: 6px 0 0; max-width: 62ch; }
.g-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Boutons */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; color: var(--texte); font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.g-btn:hover { border-color: #B9C0CC; background: #F7F8FA; }
.g-btn:disabled { opacity: .55; cursor: progress; }
.g-btn--primary { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.g-btn--primary:hover { background: var(--rouge-2); border-color: var(--rouge-2); }
.g-btn--danger { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.g-btn--danger-ghost { border-color: transparent; background: transparent; color: var(--rouge); }
.g-btn--danger-ghost:hover { background: #FCEBEE; border-color: transparent; }
.g-btn--ghost { background: transparent; border-color: transparent; }
.g-btn--dashed { border-style: dashed; width: 100%; background: transparent; }
.g-btn--block { width: 100%; }
.g-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: inherit; }
.g-icon-btn:hover { background: var(--toile); }
.g-icon-btn:disabled { opacity: .3; cursor: default; }
.g-icon-btn.is-danger { color: var(--rouge); }

/* Cartes et grilles */
.g-card { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--ombre); }
.g-card__title { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.g-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.g-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.g-kpi { display: block; background: #fff; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--ombre); color: inherit; text-decoration: none; border-top: 4px solid var(--ligne); transition: transform .15s; }
.g-kpi:hover { transform: translateY(-2px); }
.g-kpi.is-gold { border-top-color: var(--or); }
.g-kpi.is-red { border-top-color: var(--rouge); }
.g-kpi__label { margin: 0; color: var(--doux); font-weight: 600; font-size: 14px; }
.g-kpi__value { margin: 6px 0 2px; font: 800 38px/1 var(--display); font-variant-numeric: tabular-nums; }
.g-kpi__sub { margin: 0; color: var(--doux); font-size: 13px; }
.g-goal__nums { margin: 0 0 10px; font-size: 15px; }
.g-goal__nums strong { font: 800 32px/1 var(--display); }
.g-progress { height: 12px; border-radius: 99px; background: var(--toile); overflow: hidden; }
.g-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--or), #E2C163); border-radius: inherit; transition: width .6s; }
.g-chart { width: 100%; height: auto; display: block; }
.g-chart rect { fill: #C7CEDA; }
.g-chart rect.is-now { fill: var(--rouge); }
.g-chart text { font: 500 11px var(--body); fill: var(--doux); }
.g-chart .g-chart__val { fill: var(--texte); font-weight: 700; }
.g-feed { list-style: none; margin: 0; padding: 0; }
.g-feed li + li { border-top: 1px solid var(--toile); }
.g-feed a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: inherit; text-decoration: none; border-radius: 6px; }
.g-feed a:hover { background: #F7F8FA; }
.g-feed__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.g-feed__main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-feed__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.g-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--doux); }
.g-dot.is-partenariat { background: var(--or); }
.g-dot.is-adhesion { background: var(--rouge); }
.g-dot.is-benevole { background: var(--vert); }
.g-dot.is-contact { background: var(--bleu); }
.g-date { flex: none; width: 92px; font-weight: 700; font-size: 13px; color: var(--rouge); }
.g-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--toile); }
.g-empty { color: var(--doux); }
.g-empty.is-big { display: grid; justify-items: center; gap: 14px; padding: 56px 20px; text-align: center; background: #fff; border-radius: var(--r); border: 2px dashed var(--ligne); }
.g-empty.is-big p { max-width: 50ch; margin: 0; }
.g-alert { padding: 12px 14px; border-radius: 8px; background: #FCEBEE; color: var(--rouge-2); font-weight: 500; }
.g-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.g-skeleton div { height: 110px; border-radius: var(--r); background: linear-gradient(90deg, #E4E7EC 25%, #F2F4F7 50%, #E4E7EC 75%) 0 0 / 200% 100%; animation: g-shimmer 1.2s infinite linear; }
@keyframes g-shimmer { to { background-position: -200% 0; } }

/* Pastilles d'étape */
.g-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--toile); color: var(--doux); white-space: nowrap; }
.g-pill.is-nouveau { background: #FCEBEE; color: var(--rouge-2); }
.g-pill.is-contacte, .g-pill.is-essai { background: #E8EEFC; color: var(--bleu); }
.g-pill.is-negociation { background: #FFF4D6; color: #8A6400; }
.g-pill.is-signe, .g-pill.is-inscrit, .g-pill.is-actif, .g-pill.is-traite { background: #E3F4EC; color: var(--vert); }
.g-pill.is-draft { background: #FFF4D6; color: #8A6400; }

/* Barre d'outils */
.g-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.g-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 440px; }
.g-search .g-icon { position: absolute; left: 12px; color: var(--doux); }
.g-search input { width: 100%; height: 42px; padding: 0 40px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; }
.g-search kbd { position: absolute; right: 10px; padding: 1px 7px; border: 1px solid var(--ligne); border-radius: 5px; font: 12px var(--body); color: var(--doux); }
.g-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: #fff; border: 1px solid var(--ligne); }
.g-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; cursor: pointer; color: var(--doux); }
.g-seg button[aria-pressed="true"] { background: var(--nuit); color: #fff; }

/* Colonnes de suivi */
.g-board { display: grid; grid-template-columns: repeat(var(--cols), minmax(200px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.g-col { background: #E4E7EC; border-radius: var(--r); padding: 10px; min-height: 240px; transition: background .15s, box-shadow .15s; }
.g-col.is-over { background: #D6DCE6; box-shadow: inset 0 0 0 2px var(--bleu); }
.g-col__head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.g-col__head h2 { margin: 0; font-size: 14px; font-weight: 700; }
.g-col__count { padding: 0 8px; border-radius: 99px; background: #fff; font-size: 12px; font-weight: 700; }
.g-col__sum { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--doux); }
.g-col.is-signe .g-col__head h2::before, .g-col.is-inscrit .g-col__head h2::before, .g-col.is-actif .g-col__head h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--vert); vertical-align: middle; }
.g-col.is-nouveau .g-col__head h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--rouge); vertical-align: middle; }
.g-col__body { display: grid; gap: 8px; }
.g-req { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 1px 2px rgb(15 28 51 / .08); cursor: grab; border-left: 3px solid transparent; }
.g-req:hover { box-shadow: 0 3px 10px rgb(15 28 51 / .12); }
.g-req.is-dragging { opacity: .45; cursor: grabbing; }
.g-col.is-nouveau .g-req { border-left-color: var(--rouge); }
.g-col.is-signe .g-req { border-left-color: var(--or); }
.g-req p { margin: 0; }
.g-req__name { font-weight: 700; }
.g-req__sub, .g-req__subject { font-size: 13px; color: var(--doux); }
.g-req__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; font-size: 12px; color: var(--doux); }
.g-req__foot strong { color: var(--texte); font-size: 14px; }
.g-req__foot time { margin-left: auto; }
.g-hint { margin-top: 10px; }

/* Tableau */
.g-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--ombre); }
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.g-table th { text-align: left; padding: 12px 16px; font-size: 13px; color: var(--doux); font-weight: 600; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.g-table td { padding: 12px 16px; border-bottom: 1px solid var(--toile); vertical-align: top; }
.g-table tbody tr { cursor: pointer; }
.g-table tbody tr:hover { background: #F7F8FA; }
.g-table tr.is-unread td:first-child { box-shadow: inset 3px 0 var(--rouge); }
.g-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Tuiles de contenus */
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.g-tile { position: relative; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--ombre); text-align: left; cursor: pointer; overflow: hidden; transition: transform .15s; }
.g-tile:hover { transform: translateY(-2px); }
.g-tile.is-past { opacity: .6; }
.g-tile__img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--nuit); overflow: hidden; }
.g-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.g-tile__img.is-logo { background: #fff; border-bottom: 1px solid var(--toile); }
.g-tile__img.is-logo img { object-fit: contain; padding: 18px; }
.g-tile__initial { font: 900 54px/1 var(--display); color: rgb(255 255 255 / .2); text-transform: uppercase; }
.g-tile__img.is-logo .g-tile__initial { color: var(--ligne); }
.g-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.g-tile .g-pill { position: absolute; top: 10px; right: 10px; }

/* Panneau latéral */
.g-drawer { position: fixed; inset: 0; z-index: 50; }
.g-drawer__scrim { position: absolute; inset: 0; background: rgb(15 28 51 / .45); opacity: 0; transition: opacity .25s; }
.g-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -8px 0 32px rgb(15 28 51 / .2); transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.g-drawer.is-wide .g-drawer__panel { width: min(760px, 100%); }
.g-drawer.is-open .g-drawer__scrim { opacity: 1; }
.g-drawer.is-open .g-drawer__panel { transform: none; }
.g-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--toile); }
.g-drawer__head h2 { margin: 0; font: 800 26px/1.05 var(--display); text-transform: uppercase; }
.g-drawer__head p { margin: 4px 0 0; }
.g-drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; display: grid; gap: 18px; align-content: start; }
.g-drawer__foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--toile); background: #FAFBFC; }
.g-drawer__foot > :first-child.g-btn--danger-ghost { margin-right: auto; }
.g-section h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--doux); }
.g-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.g-step { padding: 7px 12px; border: 1px solid var(--ligne); border-radius: 99px; background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.g-step[aria-checked="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.g-step.is-signe[aria-checked="true"], .g-step.is-inscrit[aria-checked="true"], .g-step.is-actif[aria-checked="true"], .g-step.is-traite[aria-checked="true"] { background: var(--vert); border-color: var(--vert); }
.g-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-contact p { margin: 0 8px 0 0; width: 100%; }
.g-money { display: flex; align-items: center; gap: 8px; }
.g-money input { width: 160px; height: 42px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: 8px; font-size: 18px; font-weight: 700; }
.g-dl { margin: 0; display: grid; gap: 6px; }
.g-dl div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.g-dl dt { color: var(--doux); }
.g-dl dd { margin: 0; font-weight: 600; }
.g-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--ligne); background: var(--toile); border-radius: 0 8px 8px 0; white-space: pre-line; }
.g-note-add { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.g-note-add textarea { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 8px; resize: vertical; }
.g-notes { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--toile); display: grid; gap: 12px; }
.g-notes li { position: relative; }
.g-notes li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); border: 2px solid #fff; }
.g-notes li.is-system::before { background: var(--ligne); }
.g-notes li.is-system > p:first-child { color: var(--doux); }
.g-notes p { margin: 0; white-space: pre-line; }

/* Formulaires */
.g-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.g-field { display: grid; gap: 6px; align-content: start; }
.g-field.is-full { grid-column: 1 / -1; }
.g-field label, .g-label { font-weight: 600; font-size: 14px; }
.g-field input, .g-field select, .g-field textarea { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; }
.g-field textarea { resize: vertical; }
.g-field input:focus, .g-field select:focus, .g-field textarea:focus, .g-rte__area:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgb(36 83 200 / .18); }
.g-help { margin: 0; font-size: 13px; color: var(--doux); }
.g-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.g-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-switch__track { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #C7CEDA; transition: background .15s; flex: none; }
.g-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.g-switch input:checked + .g-switch__track { background: var(--vert); }
.g-switch input:checked + .g-switch__track::after { transform: translateX(18px); }
.g-switch input:focus-visible + .g-switch__track { outline: 3px solid var(--bleu); outline-offset: 2px; }
.g-image { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.g-image__preview { display: grid; place-items: center; width: 140px; height: 100px; border-radius: 8px; background: var(--toile); overflow: hidden; border: 1px solid var(--ligne); }
.g-image__preview img { width: 100%; height: 100%; object-fit: cover; }
.g-image__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g-rte { border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; }
.g-rte__bar { display: flex; gap: 2px; padding: 6px; background: var(--toile); border-bottom: 1px solid var(--ligne); }
.g-rte__bar button { min-width: 34px; height: 32px; border: 0; border-radius: 6px; background: transparent; font-weight: 700; cursor: pointer; }
.g-rte__bar button:hover { background: #fff; }
.g-rte__area { min-height: 220px; max-height: 50vh; overflow-y: auto; padding: 12px 14px; line-height: 1.6; }
.g-rte__area h2 { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 1em 0 .4em; }
.g-rte__area p { margin: 0 0 .8em; }
.g-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* Réglages */
.g-settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.g-tabs { position: sticky; top: 20px; display: grid; gap: 2px; }
.g-tabs a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 12px; border-radius: 8px; color: var(--texte); text-decoration: none; font-weight: 500; }
.g-tabs a:hover { background: #fff; }
.g-tabs a.is-active { background: #fff; font-weight: 700; box-shadow: inset 3px 0 var(--rouge); }
.g-tabs__ext { margin-top: 10px; color: var(--doux) !important; font-size: 14px; }
.g-settings > p.g-muted { margin: -6px 0 18px; max-width: 70ch; }
.g-settings__foot { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--toile); }
.g-repeater { display: grid; gap: 12px; }
.g-row { position: relative; margin: 0; padding: 16px; border: 1px solid var(--ligne); border-radius: 8px; }
.g-row legend { padding: 0 6px; font-weight: 700; font-size: 13px; color: var(--doux); }
.g-row__tools { display: flex; justify-content: flex-end; gap: 2px; margin-top: 8px; }

/* Notifications et confirmations */
.g-toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.g-toast { padding: 12px 16px; border-radius: 8px; background: var(--nuit); color: #fff; font-weight: 500; box-shadow: 0 8px 24px rgb(15 28 51 / .3); animation: g-in .2s ease-out; transition: opacity .3s, transform .3s; }
.g-toast.is-error { background: var(--rouge); }
.g-toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes g-in { from { opacity: 0; transform: translateY(8px); } }
.g-dialog { border: 0; border-radius: 12px; padding: 22px; max-width: 420px; box-shadow: 0 20px 60px rgb(15 28 51 / .35); }
.g-dialog::backdrop { background: rgb(15 28 51 / .5); }
.g-dialog p { margin: 0 0 18px; font-size: 16px; }
.g-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Connexion */
.g-login-page { background: var(--nuit); }
.g-login { display: grid; grid-template-columns: 1fr minmax(320px, 460px); min-height: 100vh; }
.g-login__brand { display: grid; align-content: center; gap: 28px; padding: 48px clamp(24px, 6vw, 96px); color: #fff; }
.g-login__brand { justify-items: center; }
.g-login__brand img { width: min(460px, 80%); height: auto; filter: drop-shadow(0 30px 60px rgb(0 0 0 / .4)); }
.g-login__panel { display: grid; align-content: center; gap: 8px; padding: 40px clamp(24px, 4vw, 48px); background: #fff; }
.g-login__panel h1 { margin: 0; font: 800 36px/1 var(--display); text-transform: uppercase; }
.g-form { display: grid; gap: 14px; margin: 14px 0; }
.g-form .g-field span { font-weight: 600; font-size: 14px; }

/* Petit écran */
@media (max-width: 900px) {
	.g-app { grid-template-columns: 1fr; }
	.g-mobilebar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--nuit); color: #fff; }
	.g-mobilebar__title { font: 800 18px var(--display); text-transform: uppercase; }
	.g-mobilebar .g-icon-btn:hover { background: var(--nuit-2); }
	.g-side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 32px rgb(0 0 0 / .3); }
	.nav-open .g-side { transform: none; }
	.g-main { padding-top: 18px; }
	.g-settings-layout { grid-template-columns: 1fr; }
	.g-tabs { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
	.g-tabs a { white-space: nowrap; }
	.g-login { grid-template-columns: 1fr; }
	.g-login__brand { padding: 40px 24px 28px; }
	.g-dl div { grid-template-columns: 1fr; gap: 0; }
	.g-search kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 1.2 : équipe, suivi, accès ---------- */
.g-card__title { display: flex; align-items: center; gap: 8px; }
.g-card__title .g-icon { color: var(--rouge); }
.g-btn.is-sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.g-toggle[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.g-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-inline > input[type="text"] { flex: 1; min-width: 200px; height: 40px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: 8px; font-size: 13px; }
.g-avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--nuit); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.g-avatar.is-sm { width: 24px; height: 24px; font-size: 10px; background: var(--bleu); }
.g-req__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px !important; }
.g-badge2 { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--toile); color: var(--doux); font-size: 12px; font-weight: 600; }
.g-badge2 .g-icon { width: 13px; height: 13px; }
.g-badge2.is-today { background: #FFF4D6; color: #8A6400; }
.g-badge2.is-late { background: #FCEBEE; color: var(--rouge-2); }
.g-badge2.is-ok { background: #E3F4EC; color: var(--vert); }
.g-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-follow select, .g-follow input[type="date"] { height: 40px; padding: 0 10px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; max-width: 100%; }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g-chip { padding: 4px 10px; border: 1px solid var(--ligne); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.g-chip:hover { border-color: var(--nuit); }
.g-chip.is-ghost { color: var(--doux); }
.g-replies { display: grid; gap: 6px; }
.g-reply { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 8px; }
.g-reply > span { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.g-reply > span .g-icon { color: var(--bleu); }
.g-checklist { display: grid; gap: 8px; }
.g-checklist .g-check { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 8px; cursor: pointer; font-weight: 500; }
.g-checklist .g-check:has(input:checked) { background: #E3F4EC; border-color: #BFE3D0; }
.g-checklist input { width: 18px; height: 18px; accent-color: var(--vert); }
.g-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.g-activity li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--toile); font-size: 14px; }
.g-activity a { color: inherit; text-decoration: none; }
.g-activity a:hover { color: var(--bleu); }
.g-activity time { flex: none; }
.g-seg--tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; color: var(--doux); font-weight: 600; text-decoration: none; }
.g-seg--tabs a[aria-current="page"] { background: var(--nuit); color: #fff; }
.g-person { display: flex; align-items: center; gap: 10px; }
.g-users select { height: 36px; padding: 0 8px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; }
.g-users tr { cursor: default !important; }
.g-users tr:hover { background: transparent !important; }
.g-users tr.is-muted td { opacity: .6; }
.g-linkbox { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: #E8EEFC; }
.g-linkbox p { margin: 0; font-size: 14px; }
.g-radios { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.g-radios legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.g-radios label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 8px; cursor: pointer; font-size: 14px; }
.g-radios label:has(input:checked) { border-color: var(--bleu); background: #F3F6FD; }
.g-radios input { margin-top: 3px; accent-color: var(--bleu); }
.g-matrix th, .g-matrix td { text-align: center; white-space: nowrap; }
.g-matrix th[scope="row"], .g-matrix thead th:first-child { text-align: left; }
.g-matrix thead th { font-size: 12px; white-space: normal; min-width: 92px; vertical-align: bottom; }
.g-matrix tbody tr { cursor: default !important; }
.g-matrix tbody tr:hover { background: #F7F8FA; }
.g-matrix input { width: 18px; height: 18px; accent-color: var(--rouge); cursor: pointer; }
.g-matrix input:disabled { cursor: not-allowed; opacity: .6; }
.g-matrix__group th { background: var(--toile); font-size: 12px !important; color: var(--doux); text-align: left !important; }
.g-matrix tbody th[scope="row"] { font-weight: 600; }
@media (max-width: 700px) { .g-follow { grid-template-columns: 1fr; } }
.g-me .g-avatar { background: var(--rouge); }

/* ---------- 1.3 : maintenance ---------- */
.g-maint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -8px 0 20px; padding: 10px 14px; border-radius: 10px; background: var(--rouge); color: #fff; }
.g-maint p { margin: 0; flex: 1; min-width: 200px; }
.g-maint .g-btn { background: #fff; border-color: #fff; color: var(--nuit); }
.g-maint .g-btn:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.g-maint__dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: g-blink 1.4s infinite; }
@keyframes g-blink { 50% { opacity: .3; } }
.g-maint-tools { display: grid; gap: 12px; justify-items: start; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--toile); }
.g-maint-tools .g-linkbox { width: 100%; }
.g-field input[type="datetime-local"] { max-width: 280px; }
