/**
 * Tunnel de prise de rendez-vous ISTIMA.
 *
 * Système : vert de marque du site (#89C8AB) conservé en décoratif, décliné en
 * #1B6E4D pour tout ce qui porte du texte ou reçoit un clic (contraste 6.1:1).
 * Un bleu distinct signale la visioconférence — la couleur porte une information,
 * elle ne décore pas. Typographie alignée sur le kit Elementor du site :
 * El Messiri pour les titres, Open Sans pour le texte.
 */

.istima-rdv {
	/* --- Marque --- */
	--i-brand: #89c8ab;          /* vert du site, décoratif uniquement */
	--i-brand-700: #1b6e4d;      /* texte et éléments interactifs */
	--i-brand-800: #145439;
	--i-brand-100: #dcefe5;
	--i-brand-50: #f0f8f4;

	/* --- Visioconférence --- */
	--i-visio: #2a6f97;
	--i-visio-50: #eaf2f8;
	--i-visio-100: #d3e5f0;

	/* --- Surfaces et texte --- */
	--i-bg: #ffffff;
	--i-surface: #f7fbf9;
	--i-ink: #12211c;
	--i-ink-2: #3c514a;
	--i-muted: #5a736b;
	--i-line: #dde8e3;
	--i-line-2: #c4d6ce;

	/* --- États --- */
	--i-danger: #b02a20;
	--i-danger-bg: #fcecea;
	--i-danger-line: #f0c8c4;
	--i-warn: #8a5a00;
	--i-warn-bg: #fdf4e3;
	--i-warn-line: #ecd7a8;

	/* --- Formes et mouvement --- */
	--i-r-sm: 8px;
	--i-r-md: 12px;
	--i-r-lg: 16px;
	--i-shadow: 0 1px 2px rgba(18, 33, 28, .05), 0 12px 28px -22px rgba(18, 33, 28, .45);
	--i-shadow-lift: 0 2px 4px rgba(18, 33, 28, .06), 0 18px 34px -22px rgba(18, 33, 28, .5);
	--i-ease: cubic-bezier(.2, .8, .3, 1);
	--i-fast: 180ms;

	--i-font-title: "El Messiri", "Segoe UI", Georgia, serif;
	--i-font-body: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	position: relative;
	max-width: 880px;
	margin: 0 auto;
	/* Respiration de sécurité : le formulaire ne colle jamais au bord de l'écran,
	   ni à l'en-tête ou au pied de page, quel que soit le contenant qui l'accueille. */
	padding: 40px 18px 48px;
	color: var(--i-ink);
	font-family: var(--i-font-body);
	font-size: 16px;
	line-height: 1.6;
	scroll-margin-top: 130px;
	-webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
	.istima-rdv:not([data-theme="light"]) {
		--i-brand-700: #7fd0aa;
		--i-brand-800: #a5e0c3;
		--i-brand-100: #1a3a2c;
		--i-brand-50: #16281f;
		--i-visio: #7cb8dd;
		--i-visio-50: #16262f;
		--i-visio-100: #1e3644;
		--i-bg: #101815;
		--i-surface: #16211d;
		--i-ink: #e8f0ec;
		--i-ink-2: #bccbc5;
		--i-muted: #8ca29b;
		--i-line: #26332e;
		--i-line-2: #36463f;
		--i-danger: #f0a49b;
		--i-danger-bg: #2c1a18;
		--i-danger-line: #4a2b27;
		--i-warn: #e2b767;
		--i-warn-bg: #2a2317;
		--i-warn-line: #47391f;
		--i-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 28px -22px rgba(0, 0, 0, .8);
		--i-shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 34px -22px rgba(0, 0, 0, .9);
	}
}

.istima-rdv *,
.istima-rdv *::before,
.istima-rdv *::after {
	box-sizing: border-box;
}

/*
 * Les règles de mise en page ci-dessous (display: flex / grid) prendraient le pas
 * sur l'attribut hidden : sans cette règle, le voile de chargement resterait
 * au-dessus du formulaire et intercepterait tous les clics.
 */
.istima-rdv [hidden] {
	display: none !important;
}

/*
 * On ne réinitialise ici que la police. Poser « color » sur un sélecteur
 * d'élément (.istima-rdv button, spécificité 0-1-1) l'emporterait sur les
 * modificateurs de classe comme .istima-btn--primary (0-1-0) : le texte blanc
 * du bouton principal repasserait en vert foncé sur fond vert foncé. Chaque
 * composant déclare donc sa propre couleur.
 */
.istima-rdv button {
	font-family: inherit;
	/*
	 * Le thème applique « white-space: nowrap » aux boutons. Comme la propriété
	 * s'hérite, tout le texte des cartes de choix restait sur une seule ligne et
	 * se retrouvait tronqué à la largeur de la carte.
	 */
	white-space: normal;
	line-height: 1.6;
	text-transform: none;
	letter-spacing: normal;
}

/*
 * Le reset du thème (hello-elementor/assets/css/reset.css) impose
 * « background-color: #c36 ; color: #fff » à button:hover et button:focus.
 * Sa spécificité (0-1-1) dépasse celle de nos règles de composant (0-1-0) :
 * sans cette neutralisation, cartes, prestations, praticiens et flèches du
 * calendrier virent au magenta dès le survol ou le focus clavier.
 *
 * « :where() » ne compte pour rien dans le calcul : ce sélecteur pèse (0-2-0),
 * assez pour battre le thème, à égalité avec nos règles de composant. Placée
 * ici, en amont, cette règle est donc systématiquement reprise par les états
 * définis plus bas (sélection, survol, jour retenu…).
 */
.istima-rdv :where(button):hover,
.istima-rdv :where(button):focus {
	background-color: var(--i-bg);
	color: var(--i-ink);
}

.istima-icon {
	flex-shrink: 0;
	display: block;
}

/* Anneau de focus uniforme, visible au clavier uniquement. */
.istima-rdv :focus-visible {
	outline: 2px solid var(--i-brand-700);
	outline-offset: 2px;
	border-radius: var(--i-r-sm);
}

/* ===================================================================
   Fil d'étapes
   =================================================================== */

.istima-steps ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.istima-steps__item {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 132px;
	min-width: 0;
	padding: 10px 12px;
	border-radius: var(--i-r-sm);
	background: var(--i-surface);
	color: var(--i-muted);
	font-size: 13.5px;
	font-weight: 600;
	transition: background var(--i-fast) var(--i-ease), color var(--i-fast) var(--i-ease);
}

.istima-steps__mark {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--i-bg);
	border: 1px solid var(--i-line-2);
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.istima-steps__check { display: none; }

.istima-steps__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.istima-steps__item.is-active {
	background: var(--i-brand-700);
	color: #ffffff;
}

.istima-steps__item.is-active .istima-steps__mark {
	background: rgba(255, 255, 255, .22);
	border-color: transparent;
	color: #ffffff;
}

.istima-steps__item.is-done {
	background: var(--i-brand-50);
	color: var(--i-brand-700);
}

.istima-steps__item.is-done .istima-steps__mark {
	background: var(--i-brand-700);
	border-color: var(--i-brand-700);
	color: #ffffff;
}

.istima-steps__item.is-done .istima-steps__num { display: none; }
.istima-steps__item.is-done .istima-steps__check { display: block; }

/* ===================================================================
   Titres et intros
   =================================================================== */

.istima-panel__title {
	font-family: var(--i-font-title);
	font-size: clamp(21px, 3.4vw, 28px);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 6px;
	color: var(--i-ink);
	text-wrap: balance;
}

.istima-panel__intro {
	margin: 0 0 22px;
	color: var(--i-muted);
	font-size: 15px;
	max-width: 60ch;
}

.istima-panel__intro:empty { margin: 0 0 12px; }

.istima-panel__subtitle {
	font-family: var(--i-font-title);
	font-size: 18px;
	font-weight: 600;
	margin: 30px 0 14px;
	color: var(--i-ink);
}

.istima-subpanel { margin-top: 4px; }

/* ===================================================================
   Cartes de choix
   =================================================================== */

.istima-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 14px;
}

.istima-cards--compact {
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.istima-card {
	position: relative;
	display: flex;
	flex-direction: column;
	/*
	 * « align-items: flex-start » dimensionnerait chaque enfant à la largeur de
	 * son contenu : une phrase un peu longue déborderait de la carte et serait
	 * tronquée. On laisse les enfants occuper toute la largeur, seule l'icône
	 * est ramenée à sa taille.
	 */
	align-items: stretch;
	gap: 7px;
	width: 100%;
	min-height: 44px;
	padding: 22px 22px 20px;
	text-align: left;
	background: var(--i-bg);
	border: 1.5px solid var(--i-line);
	border-radius: var(--i-r-lg);
	cursor: pointer;
	box-shadow: var(--i-shadow);
	color: var(--i-ink);
	transition: border-color var(--i-fast) var(--i-ease),
	            box-shadow var(--i-fast) var(--i-ease),
	            transform var(--i-fast) var(--i-ease);
}

.istima-card:hover {
	background: var(--i-surface);
	border-color: var(--i-line-2);
	box-shadow: var(--i-shadow-lift);
	transform: translateY(-2px);
}

.istima-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	margin-bottom: 4px;
	border-radius: var(--i-r-md);
	background: var(--i-brand-50);
	color: var(--i-brand-700);
	transition: background var(--i-fast) var(--i-ease), color var(--i-fast) var(--i-ease);
}

.istima-card--visio .istima-card__icon {
	background: var(--i-visio-50);
	color: var(--i-visio);
}

.istima-card__title {
	font-family: var(--i-font-title);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.istima-card__text {
	color: var(--i-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Pastille de sélection : la coche double la couleur, jamais l'inverse. */
.istima-card__mark {
	position: absolute;
	top: 14px;
	right: 14px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--i-brand-700);
	color: #ffffff;
}

.istima-card.is-selected {
	border-color: var(--i-brand-700);
	background: var(--i-brand-50);
}

.istima-card.is-selected .istima-card__mark { display: flex; }

.istima-card--visio.is-selected {
	border-color: var(--i-visio);
	background: var(--i-visio-50);
}

.istima-card--visio.is-selected .istima-card__mark { background: var(--i-visio); }

/* ===================================================================
   Liste de prestations
   =================================================================== */

.istima-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.istima-item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 18px;
	width: 100%;
	min-height: 44px;
	padding: 17px 20px;
	text-align: left;
	background: var(--i-bg);
	border: 1.5px solid var(--i-line);
	border-radius: var(--i-r-md);
	cursor: pointer;
	color: var(--i-ink);
	transition: border-color var(--i-fast) var(--i-ease), background var(--i-fast) var(--i-ease);
}

.istima-item:hover {
	background: var(--i-surface);
	border-color: var(--i-line-2);
}

.istima-item.is-selected {
	border-color: var(--i-brand-700);
	background: var(--i-brand-50);
}

.istima-item__title {
	grid-column: 1;
	min-width: 0; /* sans cela, un intitulé long élargit la grille au lieu de revenir à la ligne */
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
}

/*
 * La prestation est choisie avant la modalité : une même ligne peut donc porter
 * deux tarifs (cabinet et visio). Ils s'empilent plutôt que d'écraser l'intitulé.
 */
.istima-item__price {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	font-weight: 700;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: var(--i-brand-700);
}

.istima-item__price > span {
	white-space: nowrap;
}

.istima-item__price em {
	font-style: normal;
	font-weight: 500;
	font-size: 12.5px;
	color: var(--i-muted);
}

.istima-item__meta {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--i-muted);
	font-size: 13.5px;
}

.istima-item__desc {
	grid-column: 1 / -1;
	margin-top: 3px;
	color: var(--i-ink-2);
	font-size: 14px;
	line-height: 1.5;
}

/* ===================================================================
   Praticiens
   =================================================================== */

.istima-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
}

.istima-person {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 11px 14px;
	text-align: left;
	background: var(--i-bg);
	border: 1.5px solid var(--i-line);
	border-radius: var(--i-r-md);
	cursor: pointer;
	color: var(--i-ink);
	transition: border-color var(--i-fast) var(--i-ease), background var(--i-fast) var(--i-ease);
}

.istima-person:hover {
	background: var(--i-surface);
	border-color: var(--i-line-2);
}

.istima-person.is-selected {
	border-color: var(--i-brand-700);
	background: var(--i-brand-50);
}

.istima-person__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--i-brand-100);
	color: var(--i-brand-700);
	font-size: 13.5px;
	font-weight: 700;
	overflow: hidden;
}

.istima-person__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.istima-person__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.istima-person__name {
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.3;
}

.istima-person__role {
	color: var(--i-muted);
	font-size: 12.5px;
	line-height: 1.35;
	/* Une spécialité un peu longue revient à la ligne plutôt que d'être coupée. */
	overflow-wrap: anywhere;
}

/* ===================================================================
   Calendrier et créneaux
   =================================================================== */

.istima-scheduler {
	display: grid;
	/* Largeur fixe pour le calendrier : en dessous, les sept colonnes de jours
	   ne tiennent plus et débordent sur la liste des créneaux. */
	grid-template-columns: 372px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
}

.istima-calendar {
	background: var(--i-bg);
	border: 1.5px solid var(--i-line);
	border-radius: var(--i-r-lg);
	padding: 16px;
	box-shadow: var(--i-shadow);
}

.istima-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
}

.istima-calendar__header strong {
	font-family: var(--i-font-title);
	font-size: 17px;
	font-weight: 600;
	text-transform: capitalize;
}

.istima-calendar__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--i-line);
	border-radius: var(--i-r-sm);
	background: var(--i-bg);
	color: var(--i-ink-2);
	cursor: pointer;
	transition: border-color var(--i-fast) var(--i-ease), color var(--i-fast) var(--i-ease);
}

.istima-calendar__nav:hover:not(:disabled) {
	background: var(--i-brand-50);
	border-color: var(--i-brand-700);
	color: var(--i-brand-700);
}

.istima-calendar__nav:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.istima-calendar__weekdays,
.istima-calendar__grid {
	display: grid;
	/* « minmax(0, 1fr) » et non « 1fr » : une piste 1fr ne descend pas sous la
	   taille minimale de son contenu, ce qui faisait sortir la colonne du
	   dimanche de la carte et la superposait aux créneaux. */
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.istima-calendar__weekdays {
	margin-bottom: 6px;
	color: var(--i-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-align: center;
}

.istima-day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/* La piste impose la largeur, l'aspect-ratio en déduit la hauteur. Un
	   min-height ici rendrait la cellule plus large que sa colonne. */
	aspect-ratio: 1;
	min-width: 0;
	min-height: 0;
	border: 1.5px solid transparent;
	border-radius: var(--i-r-sm);
	background: transparent;
	font-size: 14.5px;
	font-variant-numeric: tabular-nums;
	color: var(--i-ink);
	cursor: pointer;
	transition: background var(--i-fast) var(--i-ease), border-color var(--i-fast) var(--i-ease);
}

.istima-day.is-empty {
	color: var(--i-line-2);
	cursor: not-allowed;
}

/* Disponibilité signalée par la couleur ET par un point : jamais la couleur seule. */
.istima-day.is-available {
	background: var(--i-brand-50);
	border-color: var(--i-brand-100);
	font-weight: 600;
	color: var(--i-brand-800);
}

.istima-day.is-available::after {
	content: "";
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--i-brand-700);
}

.istima-day.is-available:hover {
	background: var(--i-brand-100);
	border-color: var(--i-brand-700);
	color: var(--i-brand-800);
}

.istima-day.is-selected {
	background: var(--i-brand-700);
	border-color: var(--i-brand-700);
	color: #ffffff;
}

.istima-day.is-selected::after { background: #ffffff; }

.istima-calendar__legend {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--i-line);
	color: var(--i-muted);
	font-size: 12.5px;
}

.istima-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--i-brand-50);
	border: 1.5px solid var(--i-brand-700);
}

.istima-slots__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 8px;
}

.istima-slot {
	min-height: 46px;
	padding: 11px 8px;
	border: 1.5px solid var(--i-line);
	border-radius: var(--i-r-sm);
	background: var(--i-bg);
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	color: var(--i-ink);
	transition: border-color var(--i-fast) var(--i-ease), background var(--i-fast) var(--i-ease);
}

.istima-slot:hover {
	border-color: var(--i-brand-700);
	background: var(--i-brand-50);
}

.istima-slot.is-selected {
	border-color: var(--i-brand-700);
	background: var(--i-brand-700);
	color: #ffffff;
}

/* ===================================================================
   Formulaire
   =================================================================== */

.istima-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
}

.istima-field--full { grid-column: 1 / -1; }

.istima-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--i-ink);
}

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

.istima-field input[type="text"],
.istima-field input[type="email"],
.istima-field input[type="tel"],
.istima-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	border: 1.5px solid var(--i-line);
	border-radius: var(--i-r-sm);
	background: var(--i-bg);
	font: inherit;
	font-size: 16px; /* évite le zoom automatique sur iOS */
	color: var(--i-ink);
	transition: border-color var(--i-fast) var(--i-ease), box-shadow var(--i-fast) var(--i-ease);
}

.istima-field textarea { resize: vertical; }

.istima-field input::placeholder,
.istima-field textarea::placeholder { color: var(--i-muted); }

.istima-field input:focus,
.istima-field textarea:focus {
	outline: none;
	border-color: var(--i-brand-700);
	box-shadow: 0 0 0 3px var(--i-brand-100);
}

.istima-field.has-error input,
.istima-field.has-error textarea {
	border-color: var(--i-danger);
}

.istima-field__help {
	margin: 5px 0 0;
	color: var(--i-muted);
	font-size: 13px;
}

/* Message d'erreur sous le champ concerné, jamais en haut de page seul. */
.istima-error {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 6px 0 0;
	color: var(--i-danger);
	font-size: 13px;
	font-weight: 600;
}

.istima-field--check label {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-weight: 400;
	font-size: 14px;
	color: var(--i-ink-2);
	cursor: pointer;
	padding: 4px 0;
}

.istima-field--check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--i-brand-700);
	flex-shrink: 0;
}

.istima-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ===================================================================
   Récapitulatif
   =================================================================== */

.istima-recap {
	margin-bottom: 24px;
	padding: 18px 20px;
	background: var(--i-surface);
	border: 1px solid var(--i-line);
	border-radius: var(--i-r-md);
}

.istima-recap__list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 9px 22px;
	margin: 0;
}

.istima-recap__list dt {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--i-muted);
	font-size: 13.5px;
}

.istima-recap__list dd {
	margin: 0;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--i-ink);
}

.istima-recap__list dd.is-price {
	color: var(--i-brand-700);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* ===================================================================
   Paiement
   =================================================================== */

.istima-payment-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 12px;
}

.istima-payment-methods:empty { display: none; }

.istima-payment-body {
	margin-top: 22px;
	padding: 20px;
	background: var(--i-surface);
	border: 1px solid var(--i-line);
	border-radius: var(--i-r-md);
}

#istima-paypal-buttons { margin-top: 14px; }

/* ===================================================================
   Boutons
   =================================================================== */

.istima-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 13px 26px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	cursor: pointer;
	color: var(--i-ink);
	text-decoration: none;
	transition: background var(--i-fast) var(--i-ease),
	            border-color var(--i-fast) var(--i-ease),
	            color var(--i-fast) var(--i-ease);
}

.istima-btn--block {
	width: 100%;
	margin-top: 16px;
}

.istima-btn--primary {
	background: var(--i-brand-700);
	color: #ffffff;
}

.istima-rdv .istima-btn--primary:hover,
.istima-rdv .istima-btn--primary:focus {
	background: var(--i-brand-800);
	color: #ffffff;
}

.istima-btn--ghost {
	background: transparent;
	border-color: var(--i-line);
	color: var(--i-ink-2);
	padding-left: 20px;
}

.istima-rdv .istima-btn--ghost:hover,
.istima-rdv .istima-btn--ghost:focus {
	background: var(--i-surface);
	border-color: var(--i-line-2);
	color: var(--i-ink);
}

.istima-btn--danger {
	background: var(--i-danger);
	color: #ffffff;
}

.istima-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.istima-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
}

/* ===================================================================
   Messages
   =================================================================== */

.istima-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	padding: 14px 18px;
	border-radius: var(--i-r-sm);
	font-size: 14.5px;
	border: 1px solid;
}

.istima-alert.is-error {
	background: var(--i-danger-bg);
	color: var(--i-danger);
	border-color: var(--i-danger-line);
}

.istima-alert.is-success {
	background: var(--i-brand-50);
	color: var(--i-brand-800);
	border-color: var(--i-brand-100);
}

.istima-alert__icon { margin-top: 2px; }

.istima-demo-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	padding: 12px 18px;
	background: var(--i-warn-bg);
	border: 1px solid var(--i-warn-line);
	border-radius: var(--i-r-sm);
	color: var(--i-warn);
	font-size: 13.5px;
	font-weight: 600;
}

.istima-hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--i-muted);
	font-size: 13.5px;
}

.istima-hint .istima-icon { margin-top: 2px; }

.istima-hint--strong {
	padding: 14px 16px;
	background: var(--i-visio-50);
	border-radius: var(--i-r-sm);
	color: var(--i-ink-2);
	font-weight: 600;
}

.istima-hint--tiny {
	margin-top: 8px;
	font-size: 12.5px;
}

/* --- Choix du moyen de paiement PayPal : compte ou carte --- */

.istima-pay-choice {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 18px;
}

.istima-pay-choice__label {
	display: block;
	margin-bottom: 10px;
	color: var(--i-ink-2);
	font-size: 14px;
	font-weight: 600;
}

/* Le séparateur « ou » n'a pas lieu d'être quand un seul bouton subsiste. */
.istima-pay-choice--single .istima-pay-choice__sep { display: none; }

.istima-pay-choice__sep {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	color: var(--i-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.istima-pay-choice__sep::before,
.istima-pay-choice__sep::after {
	flex: 1;
	height: 1px;
	background: var(--i-line);
	content: '';
}

.istima-empty {
	padding: 22px;
	background: var(--i-surface);
	border: 1px dashed var(--i-line-2);
	border-radius: var(--i-r-md);
	color: var(--i-muted);
	text-align: center;
	font-size: 14.5px;
}

.istima-notice {
	padding: 18px 20px;
	background: var(--i-surface);
	border-radius: var(--i-r-md);
}

.istima-notice--error {
	background: var(--i-danger-bg);
	color: var(--i-danger);
}

.istima-notice--success {
	background: var(--i-brand-50);
	color: var(--i-brand-800);
}

/* ===================================================================
   Confirmation
   =================================================================== */

.istima-panel--done { text-align: center; }

.istima-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
}

.istima-done__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--i-brand-700);
	color: #ffffff;
}

.istima-done h2 {
	font-family: var(--i-font-title);
	font-size: clamp(21px, 3.4vw, 27px);
	font-weight: 600;
	margin: 0;
	text-wrap: balance;
}

.istima-done p { margin: 0; color: var(--i-ink-2); max-width: 48ch; }

.istima-done__ref {
	display: inline-block;
	padding: 7px 16px;
	background: var(--i-surface);
	border: 1px solid var(--i-line);
	border-radius: 999px;
	font-weight: 700;
	font-size: 14.5px;
	letter-spacing: .04em;
}

.istima-done .istima-recap {
	width: 100%;
	max-width: 440px;
	margin-top: 12px;
	text-align: left;
}

/* ===================================================================
   Voile de chargement
   =================================================================== */

.istima-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 22vh;
	background: color-mix(in srgb, var(--i-bg) 78%, transparent);
	backdrop-filter: blur(1.5px);
	z-index: 5;
	border-radius: var(--i-r-lg);
}

.istima-spinner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 20px;
	background: var(--i-bg);
	border: 1px solid var(--i-line);
	border-radius: 999px;
	box-shadow: var(--i-shadow-lift);
	color: var(--i-ink-2);
	font-size: 14.5px;
	font-weight: 600;
}

.istima-spinner__dot {
	width: 20px;
	height: 20px;
	border: 2.5px solid var(--i-line);
	border-top-color: var(--i-brand-700);
	border-radius: 50%;
	animation: istima-spin .7s linear infinite;
}

@keyframes istima-spin {
	to { transform: rotate(360deg); }
}

/* ===================================================================
   Écran d'annulation
   =================================================================== */

.istima-cancel h2 {
	font-family: var(--i-font-title);
	font-weight: 600;
}

/* ===================================================================
   Adaptations
   =================================================================== */

/* Sous cette largeur, le calendrier et les créneaux s'empilent : le calendrier
   reprend toute la largeur disponible et ses cellules restent confortables. */
@media (max-width: 820px) {
	.istima-scheduler {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.istima-calendar { max-width: 420px; }
}

@media (max-width: 640px) {
	/*
	 * Cinq libellés empilés occuperaient tout l'écran avant le premier choix :
	 * on garde une rangée de pastilles numérotées, le titre de l'étape suffit à
	 * situer le visiteur.
	 */
	.istima-steps ol { gap: 5px; }

	.istima-steps__item {
		flex: 1 1 0;
		gap: 0;
		justify-content: center;
		padding: 9px 4px;
	}

	.istima-steps__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.istima-card { padding: 18px; }
	.istima-calendar { max-width: 100%; }
	.istima-actions .istima-btn { flex: 1 1 auto; }

	.istima-slots__list {
		grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.istima-rdv *,
	.istima-rdv *::before,
	.istima-rdv *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.istima-card:hover { transform: none; }
}
