/*
 * Styles front du plugin ak-espace-patient.
 * Charte Astrid Kremer — tout est scopé sous `.ak-scope` pour ne pas
 * entrer en conflit avec Elementor / Hello Elementor.
 *
 * Stratégie de compatibilité Elementor :
 *   1. Tous les templates sont rendus dans un `<div class="ak-scope">`
 *      (voir AK_Shortcodes::render).
 *   2. Les variables de charte sont déclarées sur `.ak-scope` (et non
 *      `:root`) pour éviter toute fuite globale.
 *   3. Un reset ciblé restaure des defaults sains sur les éléments HTML
 *      standard à l'intérieur du scope (h1-h6, p, a, button, input…)
 *      — sans `!important`. La spécificité suffit parce que nos
 *      sélecteurs commencent tous par `.ak-scope`, ce qui égale ou
 *      dépasse celle d'Elementor qui cible typiquement via
 *      `.elementor-widget-* h2` (1 classe + 1 tag = 0,1,1).
 *   4. Les propriétés sensibles (font-family, color, background) sont
 *      forcées sur les éléments concernés.
 */

/* ========================================================================
 * 1. Scope root : variables + typographie + reset du conteneur
 * ======================================================================== */
.ak-scope {
	/* Design system Astrid Kremer — Espace patient */
	--ak-bleu:       #154C6E;
	--ak-bleu-clair: #E8F3FA;   /* fond bleu très clair (icônes, badges info) */
	--ak-bleu-pale:  #EAF4FA;   /* panneaux clairs */
	--ak-bleu-mid:   #5B7689;   /* texte secondaire / accents discrets */
	--ak-orange:     #E08A3F;
	--ak-blanc:      #FFFFFF;
	--ak-gris-bg:    #F2F8FC;
	--ak-gris-bord:  #DCEAF3;

	/* Tokens additionnels du DS */
	--ak-text:        #284A5F;   /* corps de texte */
	--ak-muted:       #6E8A9A;   /* libellés discrets */
	--ak-input-bg:    #FAFCFE;
	--ak-accent-soft: #FBEBDC;   /* fond orange clair (avatar, badges) */
	--ak-dot:         #DBEAF4;   /* motif pointillé du fond */

	/* Vert (succès / membre) */
	--ak-vert-bg:    #E4F3EA;
	--ak-vert-txt:   #2E7D52;

	/* Rouges / alertes / destructif */
	--ak-rouge-bg:   #FCE8E6;
	--ak-rouge-txt:  #C2553F;
	--ak-rouge-bord: #F0D3CC;

	/* Ambre (en attente de validation) */
	--ak-ambre-bg:   #FBEEDD;
	--ak-ambre-bord: #F2D2A8;
	--ak-ambre-txt:  #9A5B16;

	/* Radii & shadows */
	--ak-radius:       18px;
	--ak-radius-btn:   999px;
	--ak-shadow-card:  0 2px 14px -6px rgba(21, 76, 110, 0.12);
	--ak-shadow-hover: 0 14px 30px -22px rgba(21, 76, 110, 0.55);

	/* Typographie par défaut (Elementor peut pousser d'autres families
	   via --e-global-typography-* : on force explicitement les nôtres). */
	font-family: 'Nunito Sans', Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ak-text);
	text-align: left;
	box-sizing: border-box;

	/* Fond pointillé clair caractéristique du portail. */
	background-color: var(--ak-gris-bg);
	background-image: radial-gradient(var(--ak-dot) 1.3px, transparent 1.3px);
	background-size: 26px 26px;
	min-height: 100vh;
}

.ak-scope *,
.ak-scope *::before,
.ak-scope *::after {
	box-sizing: border-box;
}

/* ========================================================================
 * 2. Reset scoped des éléments standard
 *    — on ne touche PAS aux éléments Elementor (`.elementor-*`) qui
 *    pourraient être imbriqués par erreur.
 * ======================================================================== */

/* Headings : Elementor applique couleur et famille globales ; on reprend la main. */
.ak-scope h1,
.ak-scope h2,
.ak-scope h3,
.ak-scope h4,
.ak-scope h5,
.ak-scope h6 {
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: inherit;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
	text-align: inherit;
	background: transparent;
}

/* Paragraphes & listes : Elementor (ou Hello) ajoute souvent un margin-bottom 0.8em. */
.ak-scope p {
	margin: 0 0 12px;
	line-height: inherit;
	color: inherit;
}

.ak-scope ul,
.ak-scope ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ak-scope a {
	color: var(--ak-bleu);
	text-decoration: none;
	background: transparent;
	transition: color 0.15s ease;
}

.ak-scope a:hover,
.ak-scope a:focus {
	color: var(--ak-orange);
	text-decoration: none;
}

/* Inputs, selects, textareas : forcer la famille et la taille héritées,
   et remettre un fond blanc — Elementor peut les transparentiser. */
.ak-scope input,
.ak-scope select,
.ak-scope textarea,
.ak-scope button {
	font: inherit;
	color: inherit;
	margin: 0;
	letter-spacing: normal;
	text-transform: none;
}

.ak-scope input[type="text"],
.ak-scope input[type="email"],
.ak-scope input[type="tel"],
.ak-scope input[type="password"],
.ak-scope input[type="search"],
.ak-scope textarea,
.ak-scope select {
	background: var(--ak-blanc);
	color: var(--ak-bleu);
}

/* Empêche le browser d'autofill jaune de masquer nos couleurs.
   Elementor n'impose rien ici mais le thème peut. */
.ak-scope input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--ak-blanc) inset;
	-webkit-text-fill-color: var(--ak-bleu);
}

/* Boutons natifs : si un <button> est utilisé sans classe .ak-btn,
   on neutralise le look Elementor (par ex. sur submit dans un form personnalisé). */
.ak-scope button {
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
}

/* Images */
.ak-scope img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ========================================================================
 * 3. Boutons .ak-btn — variantes
 * ======================================================================== */
.ak-scope .ak-btn,
.ak-scope a.ak-btn,
.ak-scope button.ak-btn {
	display: inline-block;
	padding: 12px 26px;
	background: var(--ak-bleu);
	color: var(--ak-blanc);
	font-family: 'Nunito Sans', Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	border: 0;
	border-radius: var(--ak-radius-btn);
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease;
}

.ak-scope .ak-btn:hover,
.ak-scope .ak-btn:focus {
	background: var(--ak-orange);
	color: var(--ak-blanc);
	text-decoration: none;
}

.ak-scope .ak-btn:active {
	transform: translateY(1px);
}

.ak-scope .ak-btn--block {
	display: block;
	width: 100%;
}

.ak-scope .ak-btn-secondary {
	background: var(--ak-bleu-clair);
	color: var(--ak-bleu);
}

.ak-scope .ak-btn-secondary:hover,
.ak-scope .ak-btn-secondary:focus {
	background: var(--ak-orange);
	color: var(--ak-blanc);
}

.ak-scope .ak-btn-ghost {
	background: transparent;
	color: var(--ak-bleu);
	border: 1px solid var(--ak-bleu);
}

.ak-scope .ak-btn-ghost:hover,
.ak-scope .ak-btn-ghost:focus {
	background: var(--ak-bleu);
	color: var(--ak-blanc);
}

/* ========================================================================
 * 4. Liens
 * ======================================================================== */
.ak-scope .ak-link {
	color: var(--ak-bleu);
	text-decoration: underline;
	font-size: 13px;
	font-family: inherit;
}

.ak-scope .ak-link:hover,
.ak-scope .ak-link:focus {
	color: var(--ak-orange);
}

.ak-scope .ak-link--accent {
	color: var(--ak-bleu);
	font-weight: 700;
	text-decoration: none;
}

.ak-scope .ak-link--accent:hover,
.ak-scope .ak-link--accent:focus {
	color: var(--ak-orange);
}

/* ========================================================================
 * 5. Layout auth (connexion / inscription) — deux colonnes
 * ======================================================================== */
.ak-scope .ak-auth {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 560px;
	background: var(--ak-gris-bg);
	border-radius: var(--ak-radius);
	overflow: hidden;
	box-shadow: var(--ak-shadow-card);
	margin: 24px auto;
	max-width: 1040px;
	width: 100%;
	color: var(--ak-bleu);
}

.ak-scope .ak-auth__side {
	background: var(--ak-bleu);
	color: var(--ak-blanc);
	display: flex;
	align-items: center;
	padding: 48px 44px;
}

.ak-scope .ak-auth__side-inner {
	max-width: 380px;
}

.ak-scope .ak-auth__hello {
	font-family: 'Patrick Hand', cursive;
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 16px;
	color: var(--ak-blanc);
	font-weight: 400;
}

.ak-scope .ak-auth__lead {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 24px;
	opacity: 0.9;
	color: var(--ak-blanc);
}

.ak-scope .ak-auth__points {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ak-scope .ak-auth__points li {
	position: relative;
	padding: 6px 0 6px 26px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ak-blanc);
}

.ak-scope .ak-auth__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--ak-orange);
}

.ak-scope .ak-auth__form-wrap {
	background: var(--ak-blanc);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 44px;
}

.ak-scope .ak-card--auth {
	width: 100%;
	max-width: 420px;
}

.ak-scope .ak-card__title {
	font-family: 'Lora', Georgia, serif;
	font-size: 26px;
	margin: 0 0 6px;
	color: var(--ak-bleu);
	font-weight: 700;
}

.ak-scope .ak-card__subtitle {
	font-size: 14px;
	color: var(--ak-bleu);
	margin: 0 0 22px;
}

.ak-scope .ak-auth__switch {
	margin-top: 22px;
	margin-bottom: 0;
	text-align: center;
	font-size: 14px;
	color: var(--ak-bleu);
}

/* Responsive : une seule colonne en mobile */
@media (max-width: 860px) {
	.ak-scope .ak-auth {
		grid-template-columns: 1fr;
	}
	.ak-scope .ak-auth__side,
	.ak-scope .ak-auth__form-wrap {
		padding: 32px 28px;
	}
	.ak-scope .ak-auth__hello {
		font-size: 28px;
	}
}

/* ========================================================================
 * 6. Formulaires
 * ======================================================================== */
.ak-scope .ak-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ak-scope .ak-grid {
	display: grid;
	gap: 16px;
}

.ak-scope .ak-grid--2 {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
	.ak-scope .ak-grid--2 {
		grid-template-columns: 1fr;
	}
}

.ak-scope .ak-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}

.ak-scope .ak-field label {
	font-family: 'Poppins', Arial, sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	color: var(--ak-bleu);
	margin: 0;
	display: block;
}

.ak-scope .ak-field__optional {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: var(--ak-bleu-mid);
}

.ak-scope .ak-field__hint {
	font-size: 12px;
	color: var(--ak-bleu-mid);
	display: block;
}

.ak-scope .ak-field input[type="text"],
.ak-scope .ak-field input[type="email"],
.ak-scope .ak-field input[type="tel"],
.ak-scope .ak-field input[type="password"],
.ak-scope .ak-field input[type="date"],
.ak-scope .ak-field input[type="time"],
.ak-scope .ak-field input[type="number"],
.ak-scope .ak-field input[type="url"],
.ak-scope .ak-field input[type="search"],
.ak-scope input[type="search"][data-ak-search] {
	font-family: inherit;
	font-size: 15px;
	padding: 12px 14px;
	border: 1.5px solid var(--ak-gris-bord);
	border-radius: 12px;
	background: var(--ak-input-bg);
	color: var(--ak-text);
	outline: none;
	width: 100%;
	height: auto;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ak-scope input[type="search"][data-ak-search]:focus {
	border-color: var(--ak-bleu-mid);
	box-shadow: 0 0 0 3px rgba(80, 154, 194, 0.2);
}

.ak-scope .ak-field input:focus {
	border-color: var(--ak-bleu);
	box-shadow: 0 0 0 3px rgba(21, 76, 110, 0.16);
}

.ak-scope .ak-field--inline {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ak-scope .ak-field--rgpd {
	font-size: 13px;
	line-height: 1.5;
}

.ak-scope .ak-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--ak-bleu);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	cursor: pointer;
	margin: 0;
}

.ak-scope .ak-checkbox input {
	margin: 3px 0 0;
	width: auto;
	height: auto;
	accent-color: var(--ak-bleu);
}

/* ========================================================================
 * 7. Alertes / messages flash
 * ======================================================================== */
.ak-scope .ak-alert {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
}

.ak-scope .ak-alert--success {
	background: var(--ak-bleu-clair);
	color: var(--ak-bleu);
	border-left: 4px solid var(--ak-bleu-mid);
}

.ak-scope .ak-alert--error {
	background: var(--ak-rouge-bg);
	color: var(--ak-rouge-txt);
	border-left: 4px solid var(--ak-rouge-bord);
}

/* ========================================================================
 * 8. Card générique (réutilisable dans les modules suivants)
 * ======================================================================== */
.ak-scope .ak-card {
	background: var(--ak-blanc);
	border-radius: var(--ak-radius);
	padding: 28px 32px;
	box-shadow: var(--ak-shadow-card);
}

/* ========================================================================
 * 9. Layout dashboard / ateliers (sidebar + main)
 * ======================================================================== */
.ak-scope .ak-layout {
	display: block;
	min-height: 100vh;
	width: 100%;
}

@media (max-width: 860px) {
	.ak-scope .ak-layout {
		grid-template-columns: 1fr;
	}
}

/* Sidebar — fixe (collante) sur toute la hauteur, façon application SaaS. */
.ak-scope .ak-sidebar {
	background: var(--ak-bleu);
	color: var(--ak-blanc);
	border-radius: 0;
	padding: 28px 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	overflow-y: auto;
}

/* Décalage sous la barre d'administration WordPress quand elle est affichée. */
body.admin-bar .ak-scope .ak-sidebar {
	top: 32px;
	height: calc(100vh - 32px);
}

.ak-scope .ak-sidebar__user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ak-scope .ak-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ak-orange);
	color: var(--ak-blanc);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.ak-scope .ak-sidebar__name {
	font-weight: 700;
	font-size: 14px;
	color: var(--ak-blanc);
}

.ak-scope .ak-sidebar__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-grow: 1;
}

.ak-scope .ak-sidebar__link {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.ak-scope .ak-sidebar__link:hover,
.ak-scope .ak-sidebar__link:focus {
	background: rgba(255,255,255,0.12);
	color: var(--ak-blanc);
}

.ak-scope .ak-sidebar__link.is-active {
	background: rgba(255,255,255,0.2);
	color: var(--ak-blanc);
	font-weight: 700;
}

.ak-scope .ak-sidebar__logout {
	margin-top: auto;
	opacity: 0.6;
	font-size: 13px;
}

.ak-scope .ak-sidebar__logout:hover {
	opacity: 1;
}

/* Main content : conteneur centré façon application. */
.ak-scope .ak-main {
	min-width: 0;
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 24px 80px;
}

/* Le dashboard admin gère lui-même sa largeur (en-tête pleine largeur). */
.ak-scope .ak-main--admin {
	max-width: none;
	margin: 0;
	padding: 0;
}

.ak-scope .ak-page-title {
	font-family: 'Patrick Hand', cursive;
	font-size: 32px;
	margin: 0 0 24px;
	color: var(--ak-bleu);
	font-weight: 400;
}

.ak-scope .ak-section-title {
	font-family: 'Lora', Georgia, serif;
	font-size: 20px;
	margin: 28px 0 14px;
	color: var(--ak-bleu);
}

.ak-scope .ak-section-title--muted {
	color: var(--ak-bleu-mid);
	opacity: 0.7;
}

.ak-scope .ak-empty-msg {
	color: var(--ak-bleu-mid);
	font-style: italic;
}

/* Card prochain atelier */
.ak-scope .ak-card--next {
	background: var(--ak-bleu-pale);
	border-left: 5px solid var(--ak-orange);
}

.ak-scope .ak-card__label {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ak-bleu);
	display: block;
	margin-bottom: 6px;
}

.ak-scope .ak-card__meta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
	font-size: 14px;
}

.ak-scope .ak-card__date {
	font-weight: 700;
}

.ak-scope .ak-card--empty {
	background: var(--ak-gris-bg);
	border: 1px dashed var(--ak-gris-bord);
	text-align: center;
	color: var(--ak-bleu-mid);
}

/* Cards groupes */
.ak-scope .ak-cards-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.ak-scope .ak-card--groupe {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.1s ease;
	cursor: pointer;
	position: relative;
}

.ak-scope .ak-card--groupe:hover {
	box-shadow: var(--ak-shadow-hover);
	transform: translateY(-2px);
}

.ak-scope .ak-card--groupe .ak-card__title {
	font-family: 'Lora', Georgia, serif;
	font-size: 16px;
	margin: 0;
	color: var(--ak-bleu);
}

.ak-scope .ak-card__arrow {
	font-size: 20px;
	color: var(--ak-orange);
	margin-top: auto;
	align-self: flex-end;
}

/* ========================================================================
 * 10. Tabs (groupes)
 * ======================================================================== */
.ak-scope .ak-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--ak-gris-bord);
	padding-bottom: 0;
}

.ak-scope .ak-tab {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ak-bleu-mid);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.ak-scope .ak-tab:hover,
.ak-scope .ak-tab:focus {
	color: var(--ak-bleu);
}

.ak-scope .ak-tab.is-active {
	color: var(--ak-bleu);
	border-bottom-color: var(--ak-orange);
}

/* ========================================================================
 * 11. Bandeau atelier (header)
 * ======================================================================== */
.ak-scope .ak-atelier-header {
	background: var(--ak-bleu);
	color: var(--ak-blanc);
	border-radius: var(--ak-radius);
	padding: 24px 28px;
	margin-bottom: 20px;
}

.ak-scope .ak-atelier-header__title {
	font-family: 'Patrick Hand', cursive;
	font-size: 28px;
	margin: 8px 0 0;
	color: var(--ak-blanc);
	font-weight: 400;
}

.ak-scope .ak-atelier-header__desc {
	margin: 8px 0 0;
	opacity: 0.85;
	font-size: 14px;
	color: var(--ak-blanc);
}

/* ========================================================================
 * 12. Créneau card (front)
 * ======================================================================== */
.ak-scope .ak-creneaux-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ak-scope .ak-creneaux-list--past {
	opacity: 0.6;
}

.ak-scope .ak-creneau {
	display: flex;
	gap: 16px;
	background: var(--ak-blanc);
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: var(--ak-shadow-card);
	align-items: flex-start;
	transition: box-shadow 0.15s ease;
}

.ak-scope .ak-creneau:hover {
	box-shadow: var(--ak-shadow-hover);
}

.ak-scope .ak-creneau.is-past,
.ak-scope .ak-creneau.is-cancelled {
	opacity: 0.55;
}

.ak-scope .ak-creneau__date-block {
	background: var(--ak-bleu);
	color: var(--ak-blanc);
	border-radius: 10px;
	width: 54px;
	min-width: 54px;
	height: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ak-scope .ak-creneau__day {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.ak-scope .ak-creneau__month {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.8;
}

.ak-scope .ak-creneau__body {
	flex: 1;
	min-width: 0;
}

.ak-scope .ak-creneau__top {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	margin-bottom: 4px;
}

.ak-scope .ak-creneau__time {
	font-weight: 700;
	color: var(--ak-bleu);
}

.ak-scope .ak-creneau__duration {
	color: var(--ak-bleu-mid);
	font-size: 12px;
}

.ak-scope .ak-creneau__title {
	font-family: 'Lora', Georgia, serif;
	font-size: 15px;
	margin: 4px 0 8px;
	color: var(--ak-bleu);
}

.ak-scope .ak-creneau__bottom {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ak-scope .ak-creneau__places {
	font-size: 12px;
	color: var(--ak-bleu-mid);
}

.ak-scope .ak-btn--sm {
	padding: 6px 16px;
	font-size: 13px;
}

/* Badges inscription (front) */
.ak-scope .ak-badge--confirmed {
	background: #D9F0E0;
	color: #1C7F3B;
}

.ak-scope .ak-badge--pending {
	background: #FEF3DD;
	color: #8A5A12;
}

.ak-scope .ak-badge--refused {
	background: #F3D9D5;
	color: #8A2E20;
}

.ak-scope .ak-badge--full,
.ak-scope .ak-badge--cancelled {
	background: #E5E8EC;
	color: #555;
}

.ak-scope .ak-badge--past {
	background: #E5E8EC;
	color: #888;
}

/* Badge mode (front — réutilisé) */
.ak-scope .ak-badge-mode {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.ak-scope .ak-badge-mode--visio {
	background: var(--ak-bleu-pale);
	color: var(--ak-bleu);
}

.ak-scope .ak-badge-mode--presentiel {
	background: #F3E8DD;
	color: #6B3C0B;
}

.ak-scope .ak-badge-mode--hybride {
	background: #EAE0F3;
	color: #4A2A6B;
}

/* Loading / done states for AJAX button */
.ak-scope .is-loading {
	opacity: 0.6;
	cursor: wait;
}

.ak-scope .is-done {
	cursor: default;
}

.ak-scope .is-error {
	background: var(--ak-rouge-bg) !important;
	color: var(--ak-rouge-txt) !important;
}

@media (max-width: 520px) {
	.ak-scope .ak-creneau {
		flex-direction: column;
		align-items: stretch;
	}
	.ak-scope .ak-creneau__date-block {
		width: auto;
		height: auto;
		flex-direction: row;
		gap: 6px;
		padding: 6px 12px;
	}
}

/* ========================================================================
 * 13. Profil patient
 * ======================================================================== */
.ak-scope .ak-profil-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 860px) {
	.ak-scope .ak-profil-grid {
		grid-template-columns: 1fr;
	}
}

.ak-scope .ak-profil-field {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ak-bleu-pale);
}

.ak-scope .ak-profil-field--rgpd {
	border-bottom: none;
	padding-top: 14px;
}

.ak-scope .ak-profil-label {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ak-bleu-mid);
	font-weight: 600;
}

.ak-scope .ak-profil-value {
	font-size: 15px;
	color: var(--ak-bleu);
}

.ak-scope .ak-form--inline {
	margin-top: 12px;
}

.ak-scope .ak-field-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.ak-scope .ak-field-row input {
	flex: 1;
}

/* ========================================================================
 * 14. Bandeau de prévisualisation admin
 * ======================================================================== */
.ak-scope .ak-preview-bar {
	background: var(--ak-orange);
	color: var(--ak-blanc);
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 16px;
}

/* ========================================================================
 * 15. Responsive global — fixe les conflits Elementor container
 *     et assure que tout passe bien en mobile
 * ======================================================================== */

/* Force le scope à prendre toute la largeur disponible dans le
   conteneur Elementor (.elementor-widget-shortcode, .e-con, etc.) */
.ak-scope {
	width: 100%;
	max-width: 100%;
}

/* Auth : titres, aside, form wrap */
@media (max-width: 860px) {
	.ak-scope .ak-auth__hello {
		font-size: 24px;
	}
	.ak-scope .ak-auth__lead {
		font-size: 14px;
	}
	.ak-scope .ak-card__title {
		font-size: 22px;
	}
}

@media (max-width: 520px) {
	.ak-scope .ak-auth {
		border-radius: 0;
		margin: 0 -16px;
		box-shadow: none;
	}
	.ak-scope .ak-auth__side {
		padding: 24px 20px;
	}
	.ak-scope .ak-auth__form-wrap {
		padding: 24px 20px;
	}
	.ak-scope .ak-auth__hello {
		font-size: 22px;
	}
	.ak-scope .ak-card__title {
		font-size: 20px;
	}
	.ak-scope .ak-card__subtitle {
		font-size: 13px;
	}

	/* Champs de formulaire */
	.ak-scope .ak-field label {
		font-size: 11px;
	}
	.ak-scope .ak-field input[type="text"],
	.ak-scope .ak-field input[type="email"],
	.ak-scope .ak-field input[type="tel"],
	.ak-scope .ak-field input[type="password"] {
		font-size: 14px;
		padding: 10px 12px;
	}
	.ak-scope .ak-btn {
		font-size: 14px;
		padding: 10px 20px;
	}
	.ak-scope .ak-btn--block {
		padding: 12px 20px;
	}
}

/* Dashboard + ateliers */
@media (max-width: 860px) {
	.ak-scope .ak-layout {
		gap: 0;
	}
	/* La sidebar redevient une barre horizontale en haut (plus de fixe plein écran). */
	.ak-scope .ak-sidebar,
	body.admin-bar .ak-scope .ak-sidebar {
		position: static;
		top: auto;
		height: auto;
		overflow: visible;
		padding: 16px;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
		border-radius: 0;
	}
	.ak-scope .ak-sidebar__brand {
		width: 100%;
		padding-bottom: 8px;
		margin-bottom: 4px;
	}
	.ak-scope .ak-sidebar__nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 2px;
	}
	.ak-scope .ak-sidebar__link {
		padding: 6px 10px;
		font-size: 13px;
	}
	.ak-scope .ak-sidebar__logout {
		margin-top: 0;
	}
	.ak-scope .ak-page-title {
		font-size: 26px;
	}
	.ak-scope .ak-section-title {
		font-size: 18px;
	}
}

@media (max-width: 520px) {
	.ak-scope .ak-layout {
		gap: 12px;
		margin: 12px auto;
	}
	.ak-scope .ak-page-title {
		font-size: 22px;
		margin-bottom: 16px;
	}
	.ak-scope .ak-card {
		padding: 20px 16px;
		border-radius: 10px;
	}
	.ak-scope .ak-card--next .ak-card__meta-row {
		font-size: 13px;
	}
	.ak-scope .ak-cards-row {
		grid-template-columns: 1fr;
	}

	/* Tabs groupes en scroll horizontal */
	.ak-scope .ak-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	.ak-scope .ak-tab {
		white-space: nowrap;
		padding: 6px 12px;
		font-size: 13px;
	}

	/* Bandeau atelier */
	.ak-scope .ak-atelier-header {
		padding: 18px 16px;
		border-radius: 10px;
	}
	.ak-scope .ak-atelier-header__title {
		font-size: 22px;
	}

	/* Creneaux */
	.ak-scope .ak-creneau {
		padding: 12px 14px;
		gap: 12px;
	}
	.ak-scope .ak-creneau__title {
		font-size: 14px;
	}
	.ak-scope .ak-creneau__bottom {
		gap: 6px;
	}

	/* Profil */
	.ak-scope .ak-profil-grid {
		grid-template-columns: 1fr;
	}
	.ak-scope .ak-field-row {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ========================================================================
 * 16. Dashboard admin front-end
 * ======================================================================== */
.ak-scope .ak-admin-panel {
	margin-top: 4px;
}

.ak-scope .ak-admin-panel .ak-card {
	margin-bottom: 16px;
}

.ak-scope .ak-card--warning {
	border-left: 4px solid var(--ak-orange);
}

/* Charte : pas de rouge dans la palette, le bleu foncé marque la zone sensible. */
.ak-scope .ak-card--danger {
	border-left: 4px solid var(--ak-bleu);
	background: var(--ak-bleu-pale);
}

.ak-scope .ak-card--soft {
	background: var(--ak-bleu-pale);
	border: 1px solid var(--ak-gris-bord);
}

/* Préférence de consultation : boutons pilule (cabinet / visio). */
.ak-scope .ak-pref-choices {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.ak-scope .ak-pref-btn {
	font-family: 'Poppins', sans-serif;
	border-radius: 999px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 700;
	border: 2px solid var(--ak-gris-bord);
	background: #fff;
	color: var(--ak-bleu-mid);
	cursor: pointer;
}
.ak-scope .ak-pref-btn:hover,
.ak-scope .ak-pref-btn:focus-visible {
	border-color: var(--ak-bleu);
	color: var(--ak-bleu);
}
.ak-scope .ak-pref-btn.is-active {
	background: var(--ak-bleu);
	border-color: var(--ak-bleu);
	color: #fff;
}

/* Bouton avec icône à gauche (export RGPD). */
.ak-scope .ak-btn--icon-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Lien de retour (questionnaire → ateliers). */
.ak-scope .ak-back-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: none;
	border: none;
	color: var(--ak-muted);
	font-family: 'Poppins', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	padding: 0;
	margin-bottom: 16px;
}
.ak-scope .ak-back-link:hover,
.ak-scope .ak-back-link:focus-visible {
	color: var(--ak-bleu);
}

.ak-scope .ak-card__header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.ak-scope .ak-card__header-row .ak-card__title {
	margin: 0;
}

.ak-scope .ak-admin-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ak-bleu-pale);
	flex-wrap: wrap;
}

.ak-scope .ak-admin-row:last-child {
	border-bottom: none;
}

.ak-scope .ak-admin-row__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.ak-scope .ak-admin-row__info strong {
	font-size: 15px;
	color: var(--ak-bleu);
}

.ak-scope .ak-admin-row__meta {
	font-size: 13px;
	color: var(--ak-bleu-mid);
}

.ak-scope .ak-admin-row__actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
	align-items: center;
}

.ak-scope .ak-inline-form {
	display: inline;
}

.ak-scope .ak-form--row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.ak-scope .ak-form--row .ak-select {
	flex: 1;
	min-width: 200px;
}

.ak-scope .ak-select {
	font: inherit;
	font-size: 14px;
	padding: 10px 12px;
	border: 1px solid var(--ak-gris-bord);
	border-radius: 10px;
	background: var(--ak-blanc);
	color: var(--ak-bleu);
	width: 100%;
}

.ak-scope .ak-select:focus {
	border-color: var(--ak-bleu-mid);
	box-shadow: 0 0 0 3px rgba(80, 154, 194, 0.2);
	outline: none;
}

.ak-scope .ak-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ak-orange);
	color: var(--ak-blanc);
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 100px;
	padding: 0 5px;
	margin-left: 4px;
	vertical-align: middle;
}

.ak-scope .ak-refuse-zone-front {
	width: 100%;
	margin-top: 10px;
	padding: 14px 16px;
	background: var(--ak-bleu-pale);
	border-radius: 10px;
}

.ak-scope .ak-refuse-zone-front .ak-checkbox {
	margin-bottom: 6px;
}

.ak-scope .ak-admin-row--insc {
	flex-wrap: wrap;
}

.ak-scope .ak-admin-row--insc .ak-refuse-zone-front {
	flex-basis: 100%;
}

/* Textarea dans le scope admin front */
.ak-scope .ak-admin-panel textarea {
	font: inherit;
	font-size: 14px;
	padding: 10px 12px;
	border: 1px solid var(--ak-gris-bord);
	border-radius: 10px;
	background: var(--ak-blanc);
	color: var(--ak-bleu);
	width: 100%;
	resize: vertical;
}

.ak-scope .ak-admin-panel textarea:focus {
	border-color: var(--ak-bleu-mid);
	box-shadow: 0 0 0 3px rgba(80, 154, 194, 0.2);
	outline: none;
}

@media (max-width: 520px) {
	.ak-scope .ak-admin-row {
		flex-direction: column;
		align-items: stretch;
	}
	.ak-scope .ak-admin-row__actions {
		justify-content: flex-start;
	}
	.ak-scope .ak-form--row {
		flex-direction: column;
	}
	.ak-scope .ak-card__header-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ========================================================================
 * 18. Calendrier des créneaux (vue patient)
 * ======================================================================== */
.ak-scope .ak-main__head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ak-scope .ak-view-toggle {
	display: inline-flex;
	background: var(--ak-bleu-pale);
	border: 1px solid var(--ak-gris-bord);
	border-radius: 100px;
	padding: 3px;
	gap: 2px;
}

.ak-scope .ak-view-toggle__btn {
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 700;
	font-family: 'Nunito Sans', sans-serif;
	color: var(--ak-bleu-mid);
	text-decoration: none;
	border-radius: 100px;
	transition: background 0.15s ease, color 0.15s ease;
}

.ak-scope .ak-view-toggle__btn:hover,
.ak-scope .ak-view-toggle__btn:focus {
	color: var(--ak-bleu);
}

.ak-scope .ak-view-toggle__btn.is-active {
	background: var(--ak-bleu);
	color: var(--ak-blanc);
}

.ak-scope .ak-cal {
	margin-top: 18px;
}

.ak-scope .ak-cal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.ak-scope .ak-cal__title {
	font-family: 'Lora', Georgia, serif;
	font-size: 20px;
	color: var(--ak-bleu);
	margin: 0;
	text-align: center;
}

.ak-scope .ak-cal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ak-bleu-clair);
	color: var(--ak-bleu);
	text-decoration: none;
	font-size: 16px;
	transition: background 0.15s ease, color 0.15s ease;
}

.ak-scope .ak-cal__nav:hover,
.ak-scope .ak-cal__nav:focus {
	background: var(--ak-orange);
	color: var(--ak-blanc);
}

.ak-scope .ak-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 12px;
	font-size: 12px;
	color: var(--ak-bleu);
}

.ak-scope .ak-cal__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ak-scope .ak-cal__legend-item .ak-cal-chip {
	width: 14px;
	height: 14px;
	padding: 0;
	min-height: 0;
	border-radius: 4px;
	cursor: default;
}

.ak-scope .ak-cal__daynames {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin-bottom: 6px;
}

.ak-scope .ak-cal__dayname {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ak-bleu-mid);
	text-align: center;
}

.ak-scope .ak-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.ak-scope .ak-cal__cell {
	background: var(--ak-blanc);
	border: 1px solid var(--ak-gris-bord);
	border-radius: 10px;
	min-height: 86px;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ak-scope .ak-cal__cell.is-other {
	opacity: 0.45;
	background: var(--ak-gris-bg);
}

.ak-scope .ak-cal__cell.is-today {
	border-color: var(--ak-orange);
	box-shadow: 0 0 0 1px var(--ak-orange);
}

.ak-scope .ak-cal__daynum {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: var(--ak-bleu);
}

/* Libellé date complète : uniquement en vue agenda mobile. */
.ak-scope .ak-cal__daylabel {
	display: none;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--ak-bleu);
}

.ak-scope .ak-cal-chip {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 4px 7px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: filter 0.15s ease;
}

.ak-scope .ak-cal-chip:hover,
.ak-scope .ak-cal-chip:focus {
	filter: brightness(0.93);
}

.ak-scope .ak-cal-chip.is-selected {
	outline: 2px solid var(--ak-bleu);
	outline-offset: 1px;
}

.ak-scope .ak-cal-chip.is-open {
	background: var(--ak-bleu-clair);
	color: var(--ak-bleu);
}

.ak-scope .ak-cal-chip.is-confirmed {
	background: var(--ak-bleu);
	color: var(--ak-blanc);
}

.ak-scope .ak-cal-chip.is-pending {
	background: var(--ak-orange);
	color: var(--ak-blanc);
}

.ak-scope .ak-cal-chip.is-full,
.ak-scope .ak-cal-chip.is-muted {
	background: var(--ak-gris-bg);
	color: var(--ak-bleu);
}

.ak-scope .ak-cal-chip.is-cancelled {
	background: var(--ak-gris-bg);
	color: var(--ak-bleu);
	text-decoration: line-through;
}

.ak-scope .ak-cal-chip.is-muted.is-confirmed {
	background: var(--ak-bleu-pale);
	color: var(--ak-bleu);
}

.ak-scope .ak-cal__hint,
.ak-scope .ak-cal__empty {
	margin-top: 12px;
	font-size: 13px;
	color: var(--ak-bleu);
}

.ak-scope .ak-cal__details {
	margin-top: 14px;
}

.ak-scope .ak-cal-detail {
	background: var(--ak-bleu-pale);
	border: 1px solid var(--ak-gris-bord);
	border-radius: 14px;
	padding: 14px;
}

.ak-scope .ak-cal-detail__groupe {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ak-bleu);
	margin: 0 0 8px;
}

/* Mobile : la grille devient un agenda vertical (jours avec créneaux). */
@media (max-width: 720px) {
	.ak-scope .ak-cal__daynames {
		display: none;
	}
	.ak-scope .ak-cal__grid {
		grid-template-columns: 1fr;
	}
	.ak-scope .ak-cal__cell {
		min-height: 0;
	}
	.ak-scope .ak-cal__cell:not(.has-slots) {
		display: none;
	}
	.ak-scope .ak-cal__cell .ak-cal__daynum {
		display: none;
	}
	.ak-scope .ak-cal__cell .ak-cal__daylabel {
		display: block;
	}
}

/* ========================================================================
 * 19. Catalogue des ateliers (dashboard patient)
 * ======================================================================== */
.ak-scope .ak-catalogue {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	margin-top: 8px;
}

.ak-scope .ak-catalogue__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ak-scope .ak-catalogue__desc {
	font-size: 14px;
	color: var(--ak-bleu);
	opacity: 0.85;
	margin: 0;
	flex: 1;
}

/* ========================================================================
 * 19. Utilitaires d'espacement (remplacent les styles inline des templates :
 *     un style inline a une spécificité maximale et empêche les media
 *     queries de reprendre la main en responsive)
 * ======================================================================== */
.ak-scope .ak-mt-8  { margin-top: 8px; }
.ak-scope .ak-mt-12 { margin-top: 12px; }
.ak-scope .ak-mt-16 { margin-top: 16px; }
.ak-scope .ak-mt-18 { margin-top: 18px; }
.ak-scope .ak-mt-20 { margin-top: 20px; }
.ak-scope .ak-mt-24 { margin-top: 24px; }
.ak-scope .ak-row-muted { opacity: 0.5; }

/* ========================================================================
 * 20. Très petits écrans (≤ 400px)
 * ======================================================================== */
@media (max-width: 400px) {
	.ak-scope .ak-page-title {
		font-size: 20px;
	}
	.ak-scope .ak-card {
		padding: 14px 12px;
	}
	.ak-scope .ak-form {
		gap: 12px;
	}
	.ak-scope .ak-sidebar {
		padding: 14px 12px;
		gap: 10px;
	}
	.ak-scope .ak-main {
		padding: 0;
	}
	/* Boutons d'action pleine largeur dans les formulaires : cible tactile
	   confortable sur mobile étroit. */
	.ak-scope .ak-form > .ak-btn {
		width: 100%;
		text-align: center;
	}
	.ak-scope .ak-admin-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.ak-scope .ak-admin-row__actions {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

/* ========================================================================
 * 21. Accessibilité (public neuro-atypique : TSA / TDAH / HPI)
 *     — contrastes traités plus haut (textes secondaires en --ak-bleu).
 * ======================================================================== */

/* Lien d'évitement : masqué jusqu'au focus clavier. */
.ak-scope .ak-skip-link {
	position: absolute;
	left: 8px;
	top: -48px;
	z-index: 1000;
	background: var(--ak-bleu);
	color: var(--ak-blanc);
	padding: 10px 16px;
	border-radius: 0 0 10px 10px;
	text-decoration: none;
	transition: top 0.15s ease;
}

.ak-scope .ak-skip-link:focus {
	top: 0;
	color: var(--ak-blanc);
}

/* Contenu réservé aux lecteurs d'écran. */
.ak-scope .ak-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus clavier nettement visible sur tous les éléments interactifs. */
.ak-scope a:focus-visible,
.ak-scope button:focus-visible,
.ak-scope .ak-btn:focus-visible,
.ak-scope .ak-cal-chip:focus-visible,
.ak-scope input:focus-visible,
.ak-scope select:focus-visible,
.ak-scope textarea:focus-visible,
.ak-scope [tabindex]:focus-visible {
	outline: 3px solid var(--ak-bleu);
	outline-offset: 2px;
}

/* Repère NON-COULEUR sur les pastilles du calendrier (WCAG 1.4.1) :
   l'état ne doit pas reposer uniquement sur la couleur. Limité à la grille
   (pas aux pastilles décoratives de la légende). */
.ak-scope .ak-cal__grid .ak-cal-chip.is-confirmed::before {
	content: "\2713\00a0"; /* ✓ inscrit */
}

.ak-scope .ak-cal__grid .ak-cal-chip.is-full::before {
	content: "\2715\00a0"; /* ✕ complet */
}

/* Email dé-emphasé : son propre email n'est pas une donnée à mettre en avant. */
.ak-scope .ak-profil-value--muted {
	font-size: 13px;
	word-break: break-word;
}

/* Respect de la préférence système « réduire les animations » :
   désactive transitions/animations (confort vestibulaire, anti-distraction). */
@media (prefers-reduced-motion: reduce) {
	.ak-scope *,
	.ak-scope *::before,
	.ak-scope *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ========================================================================
 * 22. Barre de navigation supérieure (header de l'application)
 * ======================================================================== */
.ak-scope .ak-topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--ak-gris-bord);
}

body.admin-bar .ak-scope .ak-topbar {
	top: 32px;
}

.ak-scope .ak-topbar__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 11px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.ak-scope .ak-topbar__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.ak-scope .ak-topbar__logo {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ak-bleu);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 24px;
}

.ak-scope .ak-topbar__brandname {
	font-family: 'Patrick Hand', cursive;
	font-size: 22px;
	color: var(--ak-bleu);
}

.ak-scope .ak-topbar__nav {
	display: flex;
	gap: 2px;
	margin-left: auto;
	flex-wrap: wrap;
	font-family: 'Poppins', sans-serif;
}

.ak-scope .ak-topbar__link {
	position: relative;
	padding: 9px 13px;
	font-size: 14px;
	font-weight: 600;
	color: #7C93A2;
	text-decoration: none;
	border-radius: 10px;
}

.ak-scope .ak-topbar__link:hover,
.ak-scope .ak-topbar__link:focus {
	color: var(--ak-bleu);
}

.ak-scope .ak-topbar__link.is-active {
	color: var(--ak-bleu);
}

.ak-scope .ak-topbar__link.is-active::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 1px;
	height: 3px;
	border-radius: 3px;
	background: var(--ak-orange);
}

.ak-scope .ak-topbar__right {
	display: flex;
	align-items: center;
	gap: 11px;
}

.ak-scope .ak-topbar__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ak-accent-soft);
	color: var(--ak-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 14px;
	border: 2px solid var(--ak-orange);
	text-decoration: none;
}

.ak-scope .ak-topbar__icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #F0F6FA;
	border: 1px solid var(--ak-gris-bord);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ak-muted);
	text-decoration: none;
}

.ak-scope .ak-topbar__icon:hover,
.ak-scope .ak-topbar__icon:focus {
	color: var(--ak-bleu);
	border-color: var(--ak-bleu);
}

@media (max-width: 600px) {
	.ak-scope .ak-topbar__brandname {
		display: none;
	}
	.ak-scope .ak-topbar__inner {
		gap: 10px;
		padding: 10px 14px;
	}
	.ak-scope .ak-topbar__nav {
		width: 100%;
		order: 3;
		margin-left: 0;
		flex-wrap: nowrap;
		overflow-x: auto;
	}
	.ak-scope .ak-topbar__right {
		margin-left: auto;
	}
}

/* ========================================================================
 * 23. Pictogramme de mode (badge visio / présentiel / hybride)
 * ======================================================================== */
.ak-scope .ak-badge-mode {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ak-scope .ak-badge-mode__icon {
	flex-shrink: 0;
	width: 1em;
	height: 1em;
}

/* ========================================================================
 * 24. Liste « Mes prochaines séances » (dashboard)
 * ======================================================================== */
.ak-scope .ak-next-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 8px;
}

.ak-scope .ak-next-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--ak-blanc);
	border: 1px solid var(--ak-gris-bord);
	border-radius: 12px;
	padding: 12px 16px;
}

.ak-scope .ak-next-item__when {
	display: flex;
	flex-direction: column;
	min-width: 92px;
}

.ak-scope .ak-next-item__date {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--ak-bleu);
}

.ak-scope .ak-next-item__time {
	font-size: 18px;
	font-weight: 700;
	color: var(--ak-bleu);
	line-height: 1.1;
}

.ak-scope .ak-next-item__title {
	flex: 1 1 auto;
	font-family: 'Lora', serif;
	font-size: 15px;
	color: var(--ak-bleu);
}

.ak-scope .ak-next-item__visio {
	margin-left: auto;
}

@media (max-width: 520px) {
	.ak-scope .ak-next-item__when {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		min-width: 0;
	}
	.ak-scope .ak-next-item__title {
		flex-basis: 100%;
	}
}

/* ========================================================================
 * 25. Coque dashboard admin (en-tête collant + indicateurs + onglets)
 * ======================================================================== */

/* En-tête collant : titre + onglets restent visibles au défilement. */
.ak-scope .ak-admin-head {
	background: transparent;
	border-bottom: 1px solid var(--ak-gris-bord);
}

/* Contenu de l'en-tête borné et centré pour s'aligner avec le corps. */
.ak-scope .ak-admin-head__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 24px 0;
}

.ak-scope .ak-admin-head__title {
	margin: 0 0 12px;
	font-size: 28px;
}

/* Onglets façon barre de navigation applicative, défilables si débordement. */
.ak-scope .ak-tabs--admin {
	margin-bottom: 0;
	border-bottom: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.ak-scope .ak-tabs--admin .ak-tab {
	white-space: nowrap;
	padding-bottom: 12px;
}

.ak-scope .ak-admin-body {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 24px 56px;
}

/* Bandeau d'indicateurs (vue d'ensemble type tableau de bord). */
.ak-scope .ak-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}

.ak-scope .ak-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--ak-blanc);
	border: 1px solid var(--ak-gris-bord);
	border-radius: 14px;
	padding: 18px 20px;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.ak-scope .ak-stat:hover,
.ak-scope .ak-stat:focus {
	box-shadow: var(--ak-shadow-hover);
	transform: translateY(-2px);
	border-color: var(--ak-bleu-mid);
}

.ak-scope .ak-stat__num {
	font-family: 'Poppins', sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--ak-bleu);
}

.ak-scope .ak-stat__label {
	font-size: 13px;
	color: var(--ak-bleu);
}

/* Indicateur qui appelle une action (compteur > 0). */
.ak-scope .ak-stat--alert {
	border-color: var(--ak-orange);
	background: #FFF6EC;
}

.ak-scope .ak-stat--alert .ak-stat__num {
	color: var(--ak-orange);
}

@media (max-width: 860px) {
	.ak-scope .ak-main {
		padding: 18px;
	}
	.ak-scope .ak-main--admin {
		padding: 0;
	}
	.ak-scope .ak-admin-head__inner {
		padding: 16px 18px 0;
	}
	.ak-scope .ak-admin-body {
		padding: 18px 18px 48px;
	}
}

/* La barre d'admin WordPress mesure 46px sous 783px de large. */
@media screen and (max-width: 782px) {
	body.admin-bar .ak-scope .ak-topbar {
		top: 46px;
	}
}

/* ========================================================================
 * 26. Composants du design system v2 (pages patient)
 * ======================================================================== */

/* En-tête de page : gros titre Patrick Hand + accroche Lora italique. */
.ak-scope .ak-page-head {
	margin-bottom: 24px;
}
.ak-scope .ak-page-head__title {
	font-family: 'Patrick Hand', cursive;
	font-size: clamp(30px, 4.5vw, 44px);
	color: var(--ak-bleu);
	line-height: 1.05;
	font-weight: 400;
	margin: 0;
}
.ak-scope .ak-page-head__sub {
	font-family: 'Lora', Georgia, serif;
	font-style: italic;
	margin: 8px 0 0;
	font-size: 17px;
	color: var(--ak-bleu-mid);
	max-width: 600px;
}

/* Titre de panneau (Patrick Hand) à l'intérieur d'une carte. */
.ak-scope .ak-panel-title {
	font-family: 'Patrick Hand', cursive;
	font-size: 24px;
	color: var(--ak-bleu);
	font-weight: 400;
	margin: 0;
}

/* Puce icône (44px) du DS. */
.ak-scope .ak-icon-chip {
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: var(--ak-bleu-clair);
	color: var(--ak-bleu);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Bannières (compte en attente / rappel J-1). */
.ak-scope .ak-banner {
	border-radius: 16px;
	padding: 18px 20px;
	margin-bottom: 20px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.ak-scope .ak-banner__icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ak-scope .ak-banner__body {
	flex: 1;
	min-width: 200px;
}
.ak-scope .ak-banner__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 15px;
}
.ak-scope .ak-banner__text {
	font-size: 14px;
	margin-top: 3px;
}
.ak-scope .ak-banner--pending {
	background: var(--ak-ambre-bg);
	border: 1px solid var(--ak-ambre-bord);
}
.ak-scope .ak-banner--pending .ak-banner__icon {
	background: #F4D6AE;
	color: var(--ak-ambre-txt);
}
.ak-scope .ak-banner--pending .ak-banner__title {
	color: var(--ak-ambre-txt);
}
.ak-scope .ak-banner--pending .ak-banner__text {
	color: #A66B2C;
}
.ak-scope .ak-banner--reminder {
	background: var(--ak-bleu);
	color: #fff;
	align-items: center;
	flex-wrap: wrap;
	box-shadow: 0 20px 46px -30px rgba(21, 76, 110, 0.7);
}
.ak-scope .ak-banner--reminder .ak-banner__icon {
	background: rgba(255, 255, 255, 0.14);
	color: #F4B978;
}
.ak-scope .ak-banner__kicker {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #F4B978;
}
.ak-scope .ak-banner--reminder .ak-banner__title {
	font-size: 16px;
	margin-top: 3px;
}

/* Ligne « séance » avec bloc-date. */
.ak-scope .ak-seance {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	padding: 16px 18px;
	border: 1px solid var(--ak-gris-bord);
	border-radius: 16px;
	background: #fff;
}
.ak-scope .ak-seance--soft {
	background: var(--ak-input-bg);
}
.ak-scope .ak-seance__date {
	width: 60px;
	height: 60px;
	border-radius: 14px;
	background: var(--ak-bleu-clair);
	color: var(--ak-bleu);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ak-scope .ak-seance__date-m {
	font-family: 'Poppins', sans-serif;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}
.ak-scope .ak-seance__date-d {
	font-family: 'Patrick Hand', cursive;
	font-size: 24px;
	line-height: 1;
}
.ak-scope .ak-seance__body {
	flex: 1;
	min-width: 180px;
}
.ak-scope .ak-seance__name {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	color: var(--ak-text);
}
.ak-scope .ak-seance__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
	font-size: 13.5px;
	color: var(--ak-muted);
	font-weight: 600;
}
.ak-scope .ak-seance__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.ak-scope .ak-seance__places {
	font-weight: 700;
}
.ak-scope .ak-seance__places--ok {
	color: var(--ak-vert-txt);
}
.ak-scope .ak-seance__places--off {
	color: var(--ak-rouge-txt);
}
.ak-scope .ak-seance__places--wait {
	color: var(--ak-ambre-txt);
}
/* Jauge de remplissage des séances (dashboard admin). */
.ak-scope .ak-gauge-wrap {
	min-width: 120px;
}
.ak-scope .ak-gauge {
	height: 7px;
	border-radius: 999px;
	background: #EAF1F6;
	overflow: hidden;
}
.ak-scope .ak-gauge__fill {
	height: 100%;
	border-radius: 999px;
	background: var(--ak-vert-txt);
}
.ak-scope .ak-gauge__fill--warn {
	background: var(--ak-orange);
}
.ak-scope .ak-gauge__fill--full {
	background: var(--ak-rouge-txt);
}
.ak-scope .ak-gauge__label {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: var(--ak-muted);
	margin-top: 5px;
}
.ak-scope .ak-seance__action {
	margin-left: auto;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-shrink: 0;
}
.ak-scope .ak-seance.is-dim {
	opacity: 0.66;
}

/* Cartes d'actions rapides (dashboard). */
.ak-scope .ak-quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
}
.ak-scope .ak-quick {
	text-align: left;
	background: #fff;
	border: 1px solid var(--ak-gris-bord);
	border-radius: 18px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.ak-scope .ak-quick:hover,
.ak-scope .ak-quick:focus {
	border-color: var(--ak-bleu);
	transform: translateY(-2px);
	box-shadow: var(--ak-shadow-hover);
}
.ak-scope .ak-quick__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--ak-text);
}
.ak-scope .ak-quick__sub {
	font-size: 13.5px;
	color: var(--ak-muted);
	margin-top: 3px;
}

/* Pilules / badges du DS. */
.ak-scope .ak-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Poppins', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
}
.ak-scope .ak-pill--membre {
	background: var(--ak-vert-bg);
	color: var(--ak-vert-txt);
}
.ak-scope .ak-pill--ouvert {
	background: var(--ak-bleu-clair);
	color: #2A6E96;
}
.ak-scope .ak-pill--demande {
	background: var(--ak-ambre-bg);
	color: var(--ak-ambre-txt);
}
.ak-scope .ak-pill--tag {
	background: #F0F6FA;
	color: var(--ak-muted);
	font-size: 11px;
	font-weight: 600;
}

/* Chips de filtre. */
.ak-scope .ak-chip {
	white-space: nowrap;
	border-radius: 999px;
	padding: 9px 16px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 700;
	background: #fff;
	color: var(--ak-bleu-mid);
	border: 1px solid var(--ak-gris-bord);
	cursor: pointer;
	text-decoration: none;
}
.ak-scope .ak-chip.is-active {
	background: var(--ak-bleu);
	color: #fff;
	border-color: var(--ak-bleu);
}

/* Carte atelier (catalogue / membre). */
.ak-scope .ak-atelier-card {
	background: #fff;
	border: 1px solid var(--ak-gris-bord);
	border-radius: 18px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ak-scope .ak-atelier-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.ak-scope .ak-atelier-card__name {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: var(--ak-text);
	line-height: 1.25;
}
.ak-scope .ak-atelier-card__desc {
	font-size: 13.5px;
	color: var(--ak-muted);
	line-height: 1.5;
	flex: 1;
}
.ak-scope .ak-atelier-card__cadence {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--ak-bleu);
	font-weight: 700;
}
.ak-scope .ak-atelier-card__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}
.ak-scope .ak-atelier-card__cta {
	flex: 1 1 auto;
	min-width: 120px;
	text-align: center;
}
.ak-scope .ak-btn--icon {
	flex: 0 0 auto;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-left: 14px;
	padding-right: 14px;
}
/* Bouton inerte (ex. « Demande envoyée ») — rendu visuellement inactif. */
.ak-scope .ak-btn[disabled],
.ak-scope .ak-btn:disabled {
	background: var(--ak-gris-bg);
	color: var(--ak-muted);
	box-shadow: none;
	cursor: default;
	pointer-events: none;
}
.ak-scope .ak-grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 16px;
}
.ak-scope .ak-eyebrow {
	font-family: 'Poppins', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ak-muted);
	margin: 0 0 14px;
}

/* Carte segmentée (auth) + carte d'authentification. */
.ak-scope .ak-authwrap {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}
.ak-scope .ak-authcard {
	width: 100%;
	max-width: 460px;
	background: #fff;
	border: 1px solid var(--ak-gris-bord);
	border-radius: 24px;
	box-shadow: 0 22px 60px -32px rgba(21, 76, 110, 0.5);
	padding: 38px 36px 34px;
}
.ak-scope .ak-authcard__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}
.ak-scope .ak-authcard__logo {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--ak-bleu);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Patrick Hand', cursive;
	font-size: 36px;
}
.ak-scope .ak-authcard__name {
	font-family: 'Patrick Hand', cursive;
	font-size: 28px;
	color: var(--ak-bleu);
	line-height: 1;
	text-align: center;
}
.ak-scope .ak-authcard__kicker {
	font-family: 'Poppins', sans-serif;
	font-size: 11.5px;
	color: var(--ak-muted);
	letter-spacing: 0.12em;
	font-weight: 700;
	text-align: center;
	margin-top: 7px;
}
.ak-scope .ak-segment {
	display: flex;
	background: #EAF1F7;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 24px;
}
.ak-scope .ak-segment__item {
	flex: 1;
	text-align: center;
	border: none;
	border-radius: 999px;
	padding: 10px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	background: transparent;
	color: #7C93A2;
	text-decoration: none;
}
.ak-scope .ak-segment__item.is-active {
	background: #fff;
	color: var(--ak-bleu);
	box-shadow: 0 2px 8px -4px rgba(21, 76, 110, 0.5);
}

/* En-tête de profil. */
.ak-scope .ak-profile-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
}
.ak-scope .ak-profile-id {
	display: flex;
	align-items: center;
	gap: 18px;
}
.ak-scope .ak-profile-avatar {
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: var(--ak-accent-soft);
	color: var(--ak-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 24px;
	border: 2.5px solid var(--ak-orange);
	flex-shrink: 0;
}

/* Coordonnées : champs en édition inline (lecture ↔ édition). */
.ak-scope .ak-inline-field {
	width: 100%;
	font-family: 'Nunito Sans', sans-serif;
	border: 1.5px solid transparent;
	border-radius: 11px;
	padding: 11px 13px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ak-text);
	background: #F4F8FB;
}
.ak-scope .ak-inline-field.is-editing {
	background: var(--ak-input-bg);
	border-color: #BCD6E6;
}
.ak-scope .ak-inline-field:disabled {
	-webkit-text-fill-color: var(--ak-text);
	opacity: 1;
	cursor: default;
}
.ak-scope .ak-inline-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

/* Questionnaire : pied de formulaire (note RGPD + envoi). */
.ak-scope .ak-questionnaire-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #EAF1F6;
	padding-top: 20px;
	margin-top: 4px;
}
.ak-scope .ak-questionnaire-foot__note {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--ak-muted);
}

/* Toast (confirmation éphémère, bas-centre) — peut être rendu hors .ak-scope. */
.ak-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100000;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 90vw;
	background: #154C6E;
	color: #fff;
	padding: 14px 22px;
	border-radius: 999px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	box-shadow: 0 14px 34px -14px rgba(21, 76, 110, 0.8);
	animation: ak-toast-in 0.28s ease both;
}
.ak-toast__icon { flex-shrink: 0; }
.ak-toast.is-hiding {
	opacity: 0;
	transform: translateX(-50%) translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	animation: none;
}
@keyframes ak-toast-in {
	from { opacity: 0; transform: translateX(-50%) translateY(12px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.ak-toast { animation: none; }
	.ak-toast.is-hiding { transition: none; }
}

/* Page Séances : barre d'outils (filtres + bascule de vue) + liste. */
.ak-scope .ak-seances-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.ak-scope .ak-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ak-scope .ak-view-toggle {
	display: flex;
	gap: 6px;
}
.ak-scope .ak-seance-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* État verrouillé (aucun atelier rejoint). */
.ak-scope .ak-locked {
	text-align: center;
	padding: 52px 24px;
	background: #fff;
	border: 1px dashed var(--ak-gris-bord);
	border-radius: 20px;
}
.ak-scope .ak-locked__icon {
	display: inline-flex;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #EAF1F6;
	color: var(--ak-muted);
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.ak-scope .ak-locked__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: var(--ak-text);
}
.ak-scope .ak-locked__text {
	font-size: 14.5px;
	color: var(--ak-muted);
	margin: 8px auto 18px;
	max-width: 400px;
	line-height: 1.5;
}

/* =========================================================================
 * Barre supérieure — variante ADMIN (maquette) : mention ADMINISTRATION
 * sous le nom, pastilles de compteur sur les onglets, bouton aide.
 * ========================================================================= */

.ak-scope .ak-topbar__brandstack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
}

.ak-scope .ak-topbar__brandrole {
	font-family: 'Poppins', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--ak-orange);
	margin-top: 2px;
}

.ak-scope .ak-topbar__badge {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--ak-orange);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ak-scope button.ak-topbar__icon {
	border: 1px solid var(--ak-gris-bord);
	background: var(--ak-bleu-pale);
	cursor: pointer;
	padding: 0;
}

/* =========================================================================
 * Tableau de bord admin (maquette) : KPI cliquables + aperçus.
 * ========================================================================= */

.ak-scope .ak-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.ak-scope .ak-kpi {
	background: var(--ak-blanc);
	border: 1px solid var(--ak-gris-bord);
	border-radius: 18px;
	padding: 20px 22px;
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ak-scope .ak-kpi:hover,
.ak-scope .ak-kpi:focus {
	border-color: var(--ak-bleu);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -22px rgba(21, 76, 110, 0.7);
}

.ak-scope .ak-kpi__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ak-scope .ak-kpi__icon--ambre { background: #FBEEDD; color: var(--ak-ambre-txt); }
.ak-scope .ak-kpi__icon--bleu { background: var(--ak-bleu-clair); color: #2A6E96; }
.ak-scope .ak-kpi__icon--vert { background: #E4F3EA; color: var(--ak-vert-txt); }
.ak-scope .ak-kpi__icon--violet { background: #EDEAF9; color: #5A4CB0; }

.ak-scope .ak-kpi__num {
	display: block;
	font-family: 'Patrick Hand', cursive;
	font-size: 34px;
	color: var(--ak-bleu);
	line-height: 1;
}

.ak-scope .ak-kpi__label {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ak-muted);
	margin-top: 3px;
}

.ak-scope .ak-home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 22px;
}

.ak-scope .ak-home-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ak-scope .ak-home-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #EAF1F6;
	border-radius: 14px;
	background: var(--ak-input-bg);
}

.ak-scope .ak-home-row__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
}

.ak-scope .ak-home-row__avatar--ambre { background: #FBEEDD; color: var(--ak-ambre-txt); }
.ak-scope .ak-home-row__avatar--bleu { background: var(--ak-bleu-clair); color: var(--ak-bleu); }

.ak-scope .ak-home-row__info {
	flex: 1;
	min-width: 0;
}

.ak-scope .ak-home-row__name {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--ak-text);
}

.ak-scope .ak-home-row__sub {
	font-size: 12.5px;
	color: #88A0AF;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Le tutoriel guidé (ak-tour.js) pose tous ses styles en inline : il ne
 * dépend d'aucune règle de cette feuille (immunisé contre le thème et les
 * caches CSS). */

/* =========================================================================
 * Pop-up (modale) — refus avec messages préréglés.
 * ========================================================================= */

.ak-scope .ak-modal__backdrop {
	position: fixed;
	inset: 0;
	z-index: 9990;
	background: rgba(21, 76, 110, 0.45);
	cursor: pointer;
}

.ak-scope .ak-modal__card {
	position: fixed;
	z-index: 9991;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	background: var(--ak-blanc);
	border: 1px solid #D5E6F0;
	border-radius: 18px;
	box-shadow: 0 22px 60px -32px rgba(21, 76, 110, 0.6);
	padding: 22px 24px;
}

.ak-scope .ak-modal__title {
	font-family: 'Patrick Hand', cursive;
	font-size: 24px;
	color: var(--ak-bleu);
	line-height: 1.15;
	margin: 0 0 6px;
	overflow-wrap: anywhere;
}

.ak-scope .ak-modal__intro {
	font-size: 13.5px;
	color: var(--ak-bleu-mid);
	line-height: 1.55;
	margin: 0 0 16px;
}

.ak-scope .ak-modal__fieldset {
	border: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ak-scope .ak-modal__legend {
	font-family: 'Poppins', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ak-muted);
	padding: 0;
	margin: 0 0 8px;
}

.ak-scope .ak-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
	margin-top: 16px;
	border-top: 1px solid #EAF1F6;
	padding-top: 16px;
}
