/* ATGBM Core — composants (fonctionnent avec tout thème ; reprennent les jetons du thème ATGBM Pulse s'il est actif). */
.atgc {
	--c-gold: var(--atg-gold, #F5B400);
	--c-gold-50: var(--atg-gold-50, #FFF4D1);
	--c-gold-700: var(--atg-gold-700, #8A5A00);
	--c-ink: var(--atg-ink, #1F1F24);
	--c-ink-2: var(--atg-ink-2, #2B2B33);
	--c-on-dark: var(--atg-on-dark, #C9CAD1);
	--c-muted: var(--atg-muted, #5F6368);
	--c-blue: var(--atg-blue, #1558B0);
	--c-blue-50: var(--atg-blue-50, #E8F0FE);
	--c-green: var(--atg-green, #188038);
	--c-green-50: var(--atg-green-50, #E6F4EA);
	--c-red: var(--atg-red, #C5221F);
	--c-red-50: var(--atg-red-50, #FCE8E6);
	--c-bg: var(--atg-bg, #F8F9FA);
	--c-chip: var(--atg-chip, #F1F3F4);
	--c-line: var(--atg-line, #E3E5E8);
	--c-line-2: var(--atg-line-2, #DADCE0);
	--c-field: var(--atg-field, #80868B);
	--c-display: var(--atg-font-display, "Outfit", "Segoe UI", system-ui, sans-serif);
	--c-font: var(--atg-font, "Roboto", "Segoe UI", system-ui, sans-serif);
	color: var(--c-ink);
	font-family: var(--c-font);
	line-height: 1.55;
}
.atgc *, .atgc *::before, .atgc *::after { box-sizing: border-box; }
.atgc h2 { font: 600 20px/1.3 var(--c-display); margin: 0 0 14px; letter-spacing: 0; color: var(--c-ink); }
.atgc p { margin: 0 0 12px; }
.atgc a { color: var(--c-blue); }
.atgc-muted { color: var(--c-muted); font-size: 14px; }
.atgc-center { text-align: center; }
.atgc-wrap { max-width: var(--atg-wrap, 1200px); margin: 0 auto; padding: 24px 24px 80px; }
.atgc .screen-reader-text, .atgc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.atgc-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.atgc-layout__main { flex: 999 1 560px; min-width: 0; }
.atgc-layout__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.atgc-layout--contact .atgc-layout__side { flex-basis: 320px; }
.atgc-stack { display: flex; flex-direction: column; gap: 16px; }
.atgc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.atgc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.atgc-actions--end { justify-content: flex-end; }
.atgc-center .atgc-actions { justify-content: center; }

/* Boxes */
.atgc-box { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 24px; }
.atgc-box:not(.atgc-stack) > * + * { margin-top: 16px; }
.atgc-box:not(.atgc-stack) > h2 { margin-bottom: 0; }
.atgc-box--lg { padding: 36px; border-radius: 24px; }
.atgc-box--flush { padding: 0; overflow: hidden; }
.atgc-box--dark { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.atgc-box--dark h2 { color: #fff; }
.atgc-box--dark p, .atgc-box--dark .atgc-muted { color: var(--c-on-dark); }
.atgc-box--dark a { color: #fff; }
.atgc-box__label { margin: 0; padding: 12px 20px; font: 500 12px var(--c-font); letter-spacing: 1px; text-transform: uppercase; color: var(--c-muted); border-bottom: 1px solid var(--c-line); }
.atgc-box--flush .atgc-member { border: 0; border-radius: 0; }
.atgc-big { font: 700 36px/1 var(--c-display); margin: 0 0 8px; }
@media (max-width: 600px) { .atgc-box--lg { padding: 22px; } }

/* Buttons, pills, chips */
.atgc-btn, .atgc .button-primary, .atgc #wp-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
	border-radius: 999px; border: 1px solid transparent; background: var(--c-gold); color: var(--c-ink);
	font: 500 15px/1 var(--c-font); text-decoration: none; cursor: pointer; transition: filter .15s, box-shadow .15s;
}
.atgc-btn:hover { filter: brightness(.96); color: var(--c-ink); box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.atgc a.atgc-btn { color: var(--c-ink); }
.atgc-btn--dark, .atgc a.atgc-btn--dark, .atgc #wp-submit { background: var(--c-ink); color: #fff; }
.atgc-btn--dark:hover, .atgc a.atgc-btn--dark:hover { color: #fff; }
.atgc-btn--outline, .atgc a.atgc-btn--outline { background: #fff; color: var(--c-blue); border-color: var(--c-line-2); }
.atgc-btn--joined { background: var(--c-green-50); color: #0D5C26; }
.atgc-btn--lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.atgc-box--dark a.atgc-btn { color: var(--c-ink); }
.atgc-inline-form { margin: 0; display: inline; }
.atgc-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--c-chip); color: var(--c-ink); font-size: 13px; text-decoration: none; }
.atgc a.atgc-pill { color: var(--c-ink); }
.atgc-pill--sm { min-height: 24px; padding: 0 10px; font-size: 12px; }
.atgc-pill--gold { background: var(--c-gold-50); color: var(--c-gold-700); font-weight: 500; }
.atgc-pill--blue { background: var(--c-blue-50); color: var(--c-blue); font-weight: 500; }
.atgc-pill--green { background: var(--c-green-50); color: var(--c-green); font-weight: 500; }
.atgc-tag { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--c-blue-50); color: var(--c-blue); font: 500 12px/1.4 var(--c-font); }
.atgc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.atgc-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line-2); background: #fff; font: 500 14px/1 var(--c-font); text-decoration: none; }
.atgc a.atgc-chip { color: var(--c-ink); }
.atgc a.atgc-chip.is-active { background: var(--c-gold-50); border-color: var(--c-gold); }
.atgc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--c-gold-50); color: var(--c-gold-700); font: 500 13px var(--c-font); }

/* Segmented control */
.atgc-segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--c-line-2); background: #fff; border-radius: 999px; }
.atgc-segmented a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--c-ink); text-decoration: none; font: 500 14px var(--c-font); }
.atgc .atgc-segmented a.is-active { background: var(--c-ink); color: #fff; }
.atgc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; }

/* Notices */
.atgc-notice { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 12px; margin: 0 0 20px; font: 500 15px var(--atg-font, system-ui); }
.atgc-notice--success { background: #E6F4EA; color: #0D5C26; }
.atgc-notice--error { background: #FCE8E6; color: #A50E0E; }
.atgc-notice--info { background: #E8F0FE; color: #0B3D82; }
.atgc-empty { padding: 32px; text-align: center; background: #fff; border: 1px dashed var(--c-line-2); border-radius: 16px; color: var(--c-muted); }

/* Forms */
.atgc-field { display: flex; flex-direction: column; gap: 6px; }
.atgc-field label, .atgc-fieldset legend { font: 500 14px/1.4 var(--c-font); color: var(--c-ink); }
.atgc-help { font-size: 13px; color: var(--c-muted); }
.atgc input[type="text"], .atgc input[type="email"], .atgc input[type="url"], .atgc input[type="tel"], .atgc input[type="password"], .atgc input[type="search"], .atgc input[type="number"], .atgc select, .atgc textarea {
	width: 100%; min-height: 48px; border: 1px solid var(--c-field); border-radius: 8px; padding: 0 14px;
	font: 400 16px var(--c-font); color: var(--c-ink); background: #fff;
}
.atgc textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
.atgc input:focus, .atgc select:focus, .atgc textarea:focus { outline: none; border: 2px solid var(--c-blue); padding-left: 13px; }
.atgc input[type="file"] { font: 400 14px var(--c-font); }
.atgc-check { display: flex; gap: 12px; align-items: flex-start; min-height: 32px; font: 400 15px/1.45 var(--c-font); color: var(--c-ink); }
.atgc-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--c-blue); }
.atgc-fieldset { border: 0; padding: 0; margin: 0; }
.atgc-fieldset legend { margin-bottom: 10px; padding: 0; }
.atgc-radio-chip { position: relative; }
.atgc-radio-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.atgc-radio-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line-2); background: #fff; font: 500 14px var(--c-font); }
.atgc-radio-chip input:checked + span { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.atgc-radio-chip input:focus-visible + span { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.atgc-avatar-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 16px; }
.atgc-avatar-row img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.atgc-progress { height: 8px; border-radius: 999px; background: var(--c-chip); overflow: hidden; margin-bottom: 12px; }
.atgc-progress span { display: block; height: 8px; background: var(--c-gold); border-radius: 999px; }
.atgc-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 6px 6px 18px; margin-bottom: 16px; }
.atgc-search__icon { color: var(--c-muted); display: inline-flex; }
.atgc-search input[type="search"] { flex: 1 1 220px; border: 0; min-height: 44px; }
.atgc-search input[type="search"]:focus { border: 0; padding-left: 14px; box-shadow: inset 0 -2px 0 var(--c-blue); border-radius: 0; }
.atgc-search select { flex: 0 1 200px; border-radius: 999px; min-height: 44px; }
.atgc-search .atgc-check { align-items: center; padding: 0 8px; }
@media (max-width: 640px) { .atgc-search { border-radius: 16px; padding: 12px; } .atgc-search select, .atgc-search .atgc-btn { flex: 1 1 100%; } }
.atgc-count { margin-bottom: 16px; }

/* Lists */
.atgc-mini-list, .atgc-ticks, .atgc-steps { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.atgc-ticks { list-style: none; padding: 0; }
.atgc-ticks li::before { content: "✓"; color: var(--c-gold); font-weight: 700; margin-right: 10px; }
.atgc-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.atgc-pagination a { min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--c-line-2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--c-ink); background: #fff; }
.atgc .atgc-pagination a.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* Events */
.atgc-list { display: flex; flex-direction: column; gap: 16px; }
.atgc-event { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; transition: box-shadow .2s; }
.atgc-event:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 6px 16px rgba(60,64,67,.15); }
.atgc-event__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.atgc .atgc-event__title { margin: 0; font: 600 20px/1.3 var(--c-display); }
.atgc .atgc-event__title a { color: var(--c-ink); text-decoration: none; }
.atgc .atgc-event__title a:hover { color: var(--c-blue); }
.atgc-event__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--c-muted); }
.atgc-date { flex: none; width: 76px; height: 84px; border-radius: 14px; background: var(--atg-ink, #1F1F24); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.atgc-date strong { font: 700 26px/1 var(--atg-font-display, "Outfit", system-ui, sans-serif); }
.atgc-date span { font: 500 12px var(--atg-font, system-ui); text-transform: uppercase; color: var(--atg-gold, #F5B400); }
.atgc-date.is-past { background: #F1F3F4; color: #5F6368; }
.atgc-date.is-past span { color: #5F6368; }
.atgc-date--lg { width: 92px; height: 100px; }
.atgc-date--lg strong { font-size: 34px; }
.atgc-event-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 22px; margin: 0 0 32px; background: #fff; border: 1px solid #E3E5E8; border-radius: 16px; font-family: var(--atg-font, system-ui); }
.atgc-event-box__list { list-style: none; margin: 0; padding: 0; flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.atgc-event-box__list li { display: flex; align-items: center; gap: 10px; color: #2D2D33; }
.atgc-event-box__list svg { color: #5F6368; flex: none; }
.atgc-event-box .atgc-tag { background: #E8F0FE; color: #1558B0; }
.atgc-event-box .atgc-btn { color: #1F1F24; }
.atgc-event-box .atgc-btn--joined { color: #0D5C26; }
.atgc-event-box .atgc-btn--outline { color: #1558B0; }
.atgc-event-box .atgc-pill { background: #F1F3F4; }

/* Members */
.atgc-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.atgc-member { background: #fff; border: 1px solid var(--atg-line, #E3E5E8); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 20px; text-decoration: none; color: var(--atg-ink, #1F1F24); transition: box-shadow .2s, transform .2s; height: 100%; }
a.atgc-member:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 6px 16px rgba(60,64,67,.15); transform: translateY(-2px); color: var(--atg-ink, #1F1F24); }
.atgc-member__banner { display: block; width: 100%; height: 64px; background: var(--atg-ink, #1F1F24); }
.atgc-member__avatar img { width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; display: block; background: #FFF4D1; }
.atgc-member__name { font: 600 18px/1.3 var(--atg-font-display, "Outfit", system-ui, sans-serif); padding: 0 16px; }
.atgc-member__headline { font-size: 14px; line-height: 1.4; color: var(--atg-muted, #5F6368); padding: 0 16px; }
.atgc-member__city { font-size: 13px; color: var(--atg-muted, #5F6368); }
.atgc-member__skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 16px; }
.atgc-member__skills .atgc-pill { background: #F1F3F4; color: #1F1F24; }
.atgc-member__cta { margin-top: auto; padding-top: 10px; font: 500 14px var(--atg-font, system-ui); color: var(--atg-blue, #1558B0); }
.atgc-cta { margin-top: 40px; background: var(--c-gold); border-radius: 24px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.atgc-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.atgc-cta p { margin: 0; color: #3A3A42; }
.atgc-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.atgc-people a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--c-ink); }
.atgc-people img { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.atgc-people span { display: flex; flex-direction: column; font-size: 14px; }

/* Profile */
.atgc-profile-page { background: #F3F4F6; }
.atgc-profile__cover { height: 180px; background: var(--c-ink); display: flex; align-items: center; padding: 0 32px; }
.atgc-profile__cover .atgc-ecg { width: 100%; }
.atgc-profile__head { padding: 0 32px 28px; }
.atgc-profile__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.atgc-profile__avatar img { width: 152px; height: 152px; margin-top: -84px; border-radius: 50%; border: 5px solid #fff; object-fit: cover; display: block; background: var(--c-gold-50); }
.atgc .atgc-profile__name { font: 700 32px/1.2 var(--c-display); letter-spacing: -.5px; margin: 14px 0 4px; color: var(--c-ink); }
.atgc-profile__headline { font-size: 17px; margin: 0 0 4px; }
.atgc-profile__where { margin: 0 0 16px; }
.atgc-text p { margin: 0 0 12px; color: #2D2D33; line-height: 1.65; }
.atgc-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.atgc-timeline li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.atgc-timeline li:last-child { border-bottom: 0; }
.atgc-timeline__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--c-chip); color: var(--c-muted); display: flex; align-items: center; justify-content: center; }
.atgc-timeline__icon--blue { background: var(--c-blue-50); color: var(--c-blue); }
.atgc-timeline__body { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.atgc-post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.atgc-post-list a { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--c-ink); }
.atgc-post-list a > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.atgc-post-list__thumb { flex: none; width: 96px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--c-ink); display: flex; align-items: center; padding: 0 8px; }
.atgc-post-list__thumb img { width: calc(100% + 16px); height: 100%; margin: 0 -8px; object-fit: cover; max-width: none; }
@media (max-width: 600px) {
	.atgc-profile__head { padding: 0 20px 22px; }
	.atgc-profile__avatar img { width: 120px; height: 120px; margin-top: -64px; }
}

/* Contact */
.atgc-info-row { display: flex; gap: 14px; align-items: flex-start; }
.atgc-info-row svg { color: var(--c-gold); flex: none; margin-top: 2px; }
.atgc-info-row span { display: flex; flex-direction: column; gap: 2px; color: var(--c-on-dark); font-size: 15px; }
.atgc-info-row strong { color: #fff; }
.atgc-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.atgc-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--c-green-50); color: var(--c-green); display: flex; align-items: center; justify-content: center; }
.atgc-success h2 { font-size: 28px; font-weight: 700; margin: 0; }

/* Login */
.atgc-login { max-width: 480px; margin: 0 auto; }
.atgc-login form p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.atgc-login form p.login-remember label { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.atgc-login form label { font: 500 14px var(--c-font); }
.atgc-login .login-submit { margin-top: 8px; }
.atgc-login #wp-submit { width: 100%; min-height: 48px; border: 0; }
