:root {
    --color-background: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-muted-surface: #EEF2F7;
    --color-primary: #166534;
	    --color-warning: #B45309;
	    --color-danger: #B91C1C;
	    --color-danger-surface: #FEF2F2;
	    --color-focus: #2563EB;
	    --color-success-surface: #F0FDF4;
	    --color-success-border: #BBF7D0;
	    --color-text: #111827;
    --color-muted-text: #475569;
    --color-border: #CBD5E1;
    --radius-default: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.app-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 32px 16px;
}

.status-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-surface);
    padding: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
	    margin: 0 0 16px;
	    font-size: 2rem;
	    line-height: 1.1;
}

p {
    max-width: 64ch;
    margin: 0 0 24px;
    color: var(--color-muted-text);
}

.status-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.status-list div {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
    padding: 16px;
}

.status-list dt {
    margin-bottom: 4px;
    font-weight: 700;
}

.status-list dd {
    margin: 0;
    color: var(--color-muted-text);
}

/* ----- Form panel ----- */

.form-panel,
.confirmation-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-surface);
    padding: 24px;
}

.page-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Prevent long user-supplied values (emails, names) from overflowing their containers */
.form-panel,
.result-panel,
.confirmation-panel {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ----- Form fields ----- */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
	    display: block;
	    width: 100%;
	    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-color: var(--color-focus);
}

.form-group--error input,
.form-group--error textarea {
    border-color: var(--color-danger);
}

.field-error {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--color-danger);
}

/* ----- Error summary ----- */

.form-error-summary {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-default);
	    background: var(--color-danger-surface);
}

.form-error-summary p {
    margin: 0 0 8px;
    color: var(--color-danger);
}

.form-error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.form-error-summary a {
    color: var(--color-danger);
}

/* ----- Buttons ----- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-default);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* ----- Info box (confirmation pages) ----- */

.info-box {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
}

.info-box--success {
    background: var(--color-success-surface);
    border-color: var(--color-success-border);
}

.info-box--spaced {
	    margin-top: 24px;
}

.info-box p {
    margin: 0;
    font-size: 14px;
    color: var(--color-muted-text);
}

/* ----- Result panel (validation outcome pages) ----- */

.result-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-surface);
    padding: 24px;
}

/* ----- Status badge ----- */

.badge--modified {
    display: inline-block;
    font-size: 11px;
    color: var(--color-muted-text);
    background: var(--color-muted-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.kermesse-status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.85em;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-muted-surface);
    color: var(--color-muted-text);
    vertical-align: middle;
}

.kermesse-status-badge--preparation {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* ----- Secondary button ----- */

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-muted-surface);
}

/* ----- Status badge variants ----- */

.kermesse-status-badge--active,
.kermesse-status-badge--open {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.kermesse-status-badge--closed {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.kermesse-status-badge--pending {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.kermesse-status-badge--vous {
    background: #e3f2fd;
    border-color: #b6d7f5;
    color: #1565c0;
}

/* ----- Admin header ----- */

.admin-header {
    margin-bottom: 20px;
}

.admin-header .kermesse-status-badge {
    margin-top: 8px;
}

/* ----- Admin actions ----- */

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    overflow-wrap: break-word;
}

.admin-actions .btn {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
}

.admin-actions .admin-action-form {
    width: 100%;
    margin: 0;
}

.admin-actions .admin-action-form .btn {
    width: 100%;
}

/* ----- Disabled action ----- */

.disabled-action {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ----- Public link sharing ----- */

.admin-share {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
}

.admin-share label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.admin-share__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-share__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
}

.admin-share__input:focus {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-color: var(--color-focus);
}

.admin-share__copy {
    width: 100%;
}

.admin-share__feedback {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ----- Info box error variant ----- */

.info-box--error {
    background: var(--color-danger-surface);
    border-color: var(--color-danger);
}

.info-box--error p {
    color: var(--color-danger);
}

/* ----- Admin preview ----- */

.preview-note {
    margin: 0 0 16px;
    padding: 12px;
    font-size: 14px;
    color: var(--color-muted-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
    max-width: none;
}

.preview-meta {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.preview-meta div {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
    padding: 12px;
}

.preview-meta dt {
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 14px;
}

.preview-meta dd {
    margin: 0;
    color: var(--color-muted-text);
    overflow-wrap: break-word;
    word-break: break-word;
}

.preview-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
}

.slot-row--preview {
    background: var(--color-surface);
}

/* ----- Public volunteer page ----- */

.public-intro {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--color-muted-text);
}

.app-shell--public {
    width: min(100%, 720px);
}

.slot-row--public {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.slot-row--public .slot-row__info {
    margin-bottom: 0;
}

/* Available slots are <a> links leading to the signup form (Story 3.2). */
.slot-row--available {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border-color: var(--color-primary);
    cursor: pointer;
}

.slot-row--available:hover {
    background: var(--color-muted-surface);
}

.slot-row--available:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* Full slots stay visible but clearly disabled. */
.slot-row--full {
    background: var(--color-muted-surface);
    opacity: 0.75;
}

.slot-row__status--full {
    font-weight: 700;
    font-size: 13px;
    color: var(--color-danger);
    text-transform: uppercase;
}

.preview-actions {
    margin-top: 24px;
}

.preview-actions .btn {
    width: 100%;
}

/* ----- Signup form (public) ----- */

.signup-summary {
    margin-bottom: 24px;
}

.signup-optional {
    font-weight: 400;
    font-size: 13px;
    color: var(--color-muted-text);
}

.form-actions {
    margin-top: 8px;
}

.form-actions .btn {
    width: 100%;
    min-height: 44px;
}

.signup-back {
    margin-top: 20px;
}

.back-link {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.signup-forget {
    margin-top: 12px;
    text-align: center;
}

.link-button {
    min-height: 44px;
    padding: 8px 12px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: none;
}

@media (min-width: 520px) {
    .form-actions .btn {
        width: auto;
    }
}

@media (min-width: 520px) {
    .admin-share__row {
        flex-direction: row;
        align-items: center;
    }

    .admin-share__input {
        flex: 1 1 auto;
    }

    .admin-share__copy {
        width: auto;
        flex: 0 0 auto;
    }

    .preview-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .preview-actions .btn {
        width: auto;
    }
}

/* ----- Empty state ----- */

.kermesse-empty-state {
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    overflow-wrap: break-word;
}

.kermesse-empty-state__title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    max-width: none;
}

.kermesse-empty-state__text {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--color-muted-text);
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Stand list ----- */

.stand-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.stand-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-surface);
    padding: 16px;
}

.stand-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stand-group__name {
    font-weight: 700;
    font-size: 15px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ----- Stand form ----- */

.stand-form {
    margin-top: 8px;
}

.stand-form--add {
    margin-top: 16px;
}

.form-group__hint {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--color-muted-text);
}

/* ----- Stand actions ----- */

.stand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.stand-actions .btn {
    min-height: 44px;
    min-width: 44px;
}

/* ----- Slot empty state (per stand) ----- */

.slot-kermesse-empty-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
}

.slot-kermesse-empty-state__text {
    margin: 0;
    font-size: 14px;
    color: var(--color-muted-text);
    max-width: none;
}

/* ----- Add stand section ----- */

.stand-add-section {
    margin-top: 8px;
}

/* ----- Slot list ----- */

.slot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.slot-row {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
    padding: 12px;
}

.slot-row__info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 12px;
}

.slot-row__time {
    font-weight: 700;
    font-size: 15px;
}

.slot-row__capacity {
    font-size: 13px;
    color: var(--color-muted-text);
}

/* ----- Slot form ----- */

.slot-form {
    margin-top: 12px;
}

.slot-form--add {
    margin-top: 16px;
    padding: 12px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-muted-surface);
}

.slot-form__fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.slot-form .form-group {
    margin-bottom: 12px;
}

.btn--slot {
    width: 100%;
    min-height: 44px;
}

@media (min-width: 520px) {
    .slot-form__fields {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }

    .slot-form .form-group {
        margin-bottom: 0;
    }
}

/* ----- Danger button ----- */

.btn-danger {
    background: var(--color-danger);
    color: #FFFFFF;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-danger:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.btn-danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ----- Stand delete zone ----- */

.stand-delete-zone {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-default);
    background: var(--color-danger-surface);
}

.stand-delete-zone__warning {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--color-danger);
    max-width: none;
}

.stand-delete-zone__info {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--color-muted-text);
    max-width: none;
}

.stand-delete-zone__error {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--color-danger);
    font-weight: 600;
}

.stand-delete-zone__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    min-height: 44px;
    padding: 8px 0;
}

.stand-delete-zone__checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-danger);
}

.stand-delete-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stand-delete-form .form-group {
    margin-bottom: 12px;
}

.stand-delete-form .btn-danger {
    width: 100%;
    min-height: 44px;
}

@media (min-width: 720px) {
    .app-shell {
        padding-top: 64px;
    }

	    .status-list {
	        grid-template-columns: repeat(2, minmax(0, 1fr));
	    }

	    h1 {
	        font-size: 3rem;
	    }

    .admin-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-actions .btn {
        width: auto;
    }

    .admin-actions .admin-action-form,
    .admin-actions .admin-action-form .btn {
        width: auto;
    }
}
/* ----- Connected app nav ----- */

.app-nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.app-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.app-nav__brand {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
    text-decoration: none;
}

.app-nav__brand:hover {
    opacity: 0.85;
}

.app-nav__logout {
    margin: 0;
}

/* Texte des actions d'en-tête (Story 5.3) */
.nav-text {
    display: none;
}
@media (min-width: 769px) {
    .nav-text {
        display: inline;
    }
}

/* ----- Connected home ----- */

.home-connected {
    padding: 24px 0;
}

.kermesse-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kermesse-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    background: var(--color-surface);
    overflow-wrap: break-word;
    word-break: break-word;
}

.kermesse-card--stacked {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
}

.kermesse-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.kermesse-card__name {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kermesse-card__role-badge {
    flex-shrink: 0;
}

.kermesse-card__meta-row,
.kermesse-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.kermesse-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kermesse-card__actions form {
    margin: 0;
}

.kermesse-card__signup-summary {
    font-size: 13px;
    color: var(--color-text-muted, #6c757d);
    margin: 6px 0 4px;
}

.home-connected__actions {
    margin-top: 8px;
}

.home-connected__actions .btn {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 520px) {
    .home-connected__actions .btn {
        width: auto;
    }
}

/* public/assets/css/app.css */
:root {
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-success: #16A34A;
    --color-danger: #DC2626;
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text: #111827;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    --space-2: 0.5rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-4);
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn--primary {
    background-color: var(--color-primary);
    color: white;
}
.btn--primary:hover {
    background-color: var(--color-primary-dark);
}


/* Button variants */
.btn--secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn--secondary:hover {
    background-color: var(--color-border);
}
.btn--large {
    padding: var(--space-4) var(--space-6);
    font-size: 1.125rem;
    min-height: 44px;
}
.btn--block {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Public home page */
.home-public {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) 0;
    gap: var(--space-8);
}
.home-public__header {
    text-align: center;
}
.home-public__title {
    margin: 0 0 var(--space-2);
    font-size: 2rem;
    font-weight: 700;
}
.home-public__subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
}
.home-public__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
    max-width: 360px;
}

.form-error-banner {
    background-color: #FEE2E2;
    color: var(--color-danger);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}
.form-error-list {
    color: var(--color-danger);
    margin-bottom: var(--space-4);
}

/* ----- Profile Resolution (Story 3.6) ----- */

.profile-resolution__intro {
    margin-bottom: var(--space-6);
}

.profile-resolution__comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

@media (min-width: 600px) {
    .profile-resolution__comparison {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-resolution__column {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    padding: var(--space-4);
    background: var(--color-muted-surface);
}

.profile-resolution__subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 12px;
}

.profile-resolution__details {
    margin: 0;
    display: grid;
    gap: var(--space-2);
}

.profile-resolution__details div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-resolution__details dt {
    font-size: 0.8125rem;
    color: var(--color-muted-text);
    font-weight: 600;
}

.profile-resolution__details dd {
    margin: 0;
    font-size: 1rem;
}

.profile-resolution__choices {
    border: none;
    padding: 0;
    margin: 0 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-resolution__legend {
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-resolution__choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    cursor: pointer;
    font-size: 1rem;
}

.profile-resolution__choice input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Responsive classes for slots */
.slot-desktop-only { display: none; }
.slot-mobile-only { display: block; }

@media (min-width: 768px) {
    .slot-desktop-only { display: block; }
    .slot-mobile-only { display: none !important; }
}

/* Mobile tooltip toggling */
.slot-row--disabled.show-tooltip .slot-tooltip {
    display: block !important;
    animation: fadeIn 0.2s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Make available slots look like buttons on mobile */
@media (max-width: 767px) {
    .slot-row--available {
        background: #fff;
        border: 1px solid #c8e6c9;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: background 0.2s;
    }
    .slot-row--available:active {
        background: #e8f5e9;
    }
}

/* ============================================================
   Tableau de bord kermesse (Stories 4.x / 5.2)
   ============================================================ */

/* ---- Navigation Dashboard (Sidebar / Accordéon) ----------------------- */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}
.dashboard-single {
    width: 100%;
    margin-top: 24px;
}
.dashboard-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}
@media (min-width: 769px) {
    .dashboard-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
}

/* ---- Sidebar Navigation (Desktop) ---- */
.sidebar-nav {
    display: none; /* Masqué sur mobile, remplacé par l'accordéon */
}
@media (min-width: 769px) {
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        width: 250px;
        flex-shrink: 0;
        background: var(--color-surface, #fff);
        border: 1px solid var(--color-border, #e9ecef);
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
}

.sidebar-nav__btn {
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 4px;
    color: var(--color-text-muted, #6c757d);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.sidebar-nav__btn:hover {
    background: var(--color-muted-surface, #f8f9fa);
}
.sidebar-nav__btn.is-active {
    background: var(--color-primary-light, #e8f5e9);
    color: var(--color-primary, #166534);
    font-weight: bold;
}
.sidebar-nav__btn:focus-visible {
    outline: 2px solid var(--color-primary, #166534);
    outline-offset: 2px;
}

/* ---- Accordion Header (Mobile) ---- */
.accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid var(--color-border, #e9ecef);
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-text, #111827);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: #eef2f7;
}
.accordion-icon {
    margin-right: 12px;
    font-size: 0.9rem;
    color: var(--color-text-muted, #6c757d);
}
@media (min-width: 769px) {
    .accordion-header {
        display: none; /* Masqué sur Desktop car on a la Sidebar */
    }
}

/* ---- Panneau de contenu onglet ---- */
.tab-panel { display: block; padding-top: 16px; }
.tab-panel:first-of-type { padding-top: 0; }

/* Desktop : On masque la section entière si elle n'est pas ouverte */
@media (min-width: 769px) {
    body.js-active .tab-panel:not(.is-open) { display: none !important; }
    /* Aligne le titre de section avec le bord supérieur du menu sidebar */
    .tab-panel { padding-top: 0; }
    h2.section-title { margin-top: 0; }
}

/* Mobile : On laisse la section visible (pour voir le bouton accordéon), mais on masque son contenu */
@media (max-width: 768px) {
    body.js-active .tab-panel:not(.is-open) > *:not(.accordion-header) {
        display: none !important;
    }
}

/* ---- Jumbotron Kermesse ---- */
.kermesse-jumbotron {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--color-border, #e9ecef);
    margin-top: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.kermesse-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--color-border, #e9ecef);
}

/* ---- Desktop Grid ---- */
.desktop-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 769px) {
    .desktop-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        align-items: start;
    }
}

/* Barre d'outils section */
.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.section-toolbar .section-title { margin: 0; }

/* ---- Modales -------------------------------------------------------- */
.k-modal {
    border: none;
    border-radius: 8px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.k-modal::backdrop { background-color: rgba(0,0,0,0.5); }
.k-modal__form,
.k-modal__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.k-modal__title { margin: 0; font-size: 1.25rem; }
.k-modal__text  { margin: 0; font-size: 0.95rem; color: var(--text-color); }
.k-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ---- Feedback / alertes --------------------------------------------- */
.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-success::before { content: "✅"; }
.form-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-warning::before { content: "⚠️"; }

/* ---- En-tête caractéristiques --------------------------------------- */
.kermesse-characteristics {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.kermesse-dashboard__lifecycle { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Éléments partagés entre onglets -------------------------------- */
.section-placeholder { color: #555; font-size: 14px; margin: 8px 0 0; }
.subsection-title    { font-size: 1.05rem; margin: 8px 0 16px; }

.my-signups-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.my-signups-list__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
}
.my-signups-list__when  { color: #555; font-size: 14px; }
.my-signups-list__cancel { margin: 8px 0 0; }
.my-signups-list__cancel .btn { width: 100%; }

/* ---- Gestion des participants --------------------------------------- */
.invite-form {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    margin: 8px 0 24px;
}
.invite-form .form-group { margin-bottom: 12px; }
.participants-stand { margin: 8px 0 24px; }
.participants-stand__slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 980px) {
    .participants-stand__slots {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        align-items: start;
    }
}
.participants-slot {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    margin-bottom: 12px;
}
.participants-slot__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 8px;
}
.participants-slot__when  { color: #333; font-size: 14px; }
.participants-slot__fill  { color: #555; font-size: 14px; font-weight: bold; white-space: nowrap; }
.participants-slot__empty { color: #555; font-size: 14px; margin: 0; }
.participants-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.participants-list__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
}
.participants-list__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 14px;
}
.participants-list__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
}

/* =========================================================================
   Story 5.10 — Admin cancel / edit panels
   ========================================================================= */

/* Button variants missing from the BEM set */
.btn--danger {
    background-color: #dc3545;
    color: white;
    border: none;
}
.btn--danger:hover {
    background-color: #c82333;
}
.btn--sm {
    padding: 6px 12px;
    font-size: 0.85em;
    min-height: 36px;
}

/* Admin participant row — ligne unique ou wrapped */
.participants-list__item--admin {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 4px;
    border-top: none;
    border-bottom: 1px solid var(--color-border, #e9ecef);
}
.participants-list__item--admin:first-child { border-top: 1px solid var(--color-border, #e9ecef); }
.participants-list__item--admin .participants-list__name {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    padding: 2px 0;
}
.participants-list__block-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 8px;
    min-width: 0;
    flex: 1 1 auto;
}
.participants-list__block-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 12px;
    min-width: 0;
    flex: 1 1 auto;
}
/* Panneau d'édition prend toute la largeur quand ouvert */
.participants-list__block-1 .admin-edit-details[open] {
    flex-basis: 100%;
    flex-wrap: wrap;
}
/* Mobile : icône seule pour téléphone/email ; texte visible dès 600px */
.contact-text { display: none; }
@media (min-width: 600px) {
    .participants-list__item--admin {
        gap: 6px 12px;
    }
    .contact-text { 
        display: inline; 
        min-width: 0; 
        word-break: break-all;
    }
}
.participants-list__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 12px;
    font-size: 13px;
    flex-shrink: 1;
    min-width: 0;
}
.participants-list__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    flex-shrink: 1;
    margin-left: auto;
}
/* Emoji icon action buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 18px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    list-style: none;
    transition: background 0.15s;
}
.btn-icon::-webkit-details-marker { display: none; }
.btn-icon:hover { background: #f0f0f0; }
.btn-icon--danger:hover { background: #fdecea; }
/* "Ajouter un bénévole" row */
.participants-slot__add-action {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--color-border, #e9ecef);
}
.participants-slot__full {
    display: inline-block;
    font-size: 13px;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
}
.signup-status-icon {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
    cursor: default;
}

/* <details> expand panels — hide the default marker */
.admin-cancel-details > summary,
.admin-edit-details   > summary,
.admin-move-details   > summary {
    cursor: pointer;
    list-style: none;
}
.admin-cancel-details > summary::-webkit-details-marker,
.admin-edit-details   > summary::-webkit-details-marker,
.admin-move-details   > summary::-webkit-details-marker {
    display: none;
}

/* Cancel panel */
.admin-cancel-details__panel {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    max-width: 340px;
}
.admin-cancel__confirm-text {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: #721c24;
}
.admin-cancel__notify-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    margin-bottom: 10px;
    cursor: pointer;
}
.admin-cancel__notify-checkbox {
    width: 16px;
    height: 16px;
}

/* Edit panel */
.admin-edit-details__panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    max-width: 420px;
}
.form-group--sm { margin-bottom: 8px; }
.form-label--sm {
    font-size: 0.85em;
    display: block;
    margin-bottom: 2px;
}
.form-input--admin { width: 100%; max-width: 240px; }
.form-input--admin-phone { width: 100%; max-width: 160px; }

/* Shared action-buttons row */
.admin-form__buttons { display: flex; gap: 8px; }

/* Locked profile read-only display */
.admin-locked-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-top: 4px;
    max-width: 420px;
}
.admin-locked-display__fields {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 0.88em;
    margin-bottom: 8px;
}
.admin-locked-display__label { color: #6c757d; font-weight: 500; }
.participants-list__locked-note {
    font-size: 0.8em;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

/* ----- History section (Story 5.10) ----- */
.participants-slot__history {
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    padding-top: 6px;
}
.participants-slot__history-toggle {
    font-size: 0.82em;
    color: var(--color-muted-text);
    cursor: pointer;
    user-select: none;
    list-style: none;
    padding: 2px 0;
}
.participants-slot__history-toggle::-webkit-details-marker { display: none; }
.participants-list--history {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
}
.participants-list__item--history {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 0.85em;
    color: var(--color-muted-text);
    border-bottom: none;
}
.participants-list__history-meta {
    font-size: 0.82em;
    color: var(--color-muted-text);
}
.badge--cancelled {
    display: inline-block;
    font-size: 11px;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
}
.badge--removed {
    display: inline-block;
    font-size: 11px;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
}
