/* Julia Réservations — reprend les couleurs du thème Envol Coaching si présent */
.jresa {
	--j-deep: var(--deep, #1F4A33);
	--j-ink: var(--ink, #1F2E26);
	--j-sun: var(--accent-bright, #F6B93B);
	--j-gold: var(--accent, #8A5A00);
	--j-leaf: var(--leaf, #2E6B45);
	--j-sage: var(--sage, #E6F2E8);
	--j-cream: var(--peach, #FFF5D6);
	--j-line: var(--line, #E3EBD9);
	--j-muted: var(--muted, #55625A);
	--j-serif: var(--serif, 'Cormorant Garamond', Georgia, serif);
	--j-radius: 22px;
	--j-shadow: 0 24px 50px -28px rgba(31, 74, 51, .38);
	max-width: 1080px;
	margin: 0 auto;
	color: var(--j-ink);
	font-size: 16px;
	line-height: 1.55;
}
.ec-prose:has(.jresa) { max-width: 1128px; }
.jresa *, .jresa *::before, .jresa *::after { box-sizing: border-box; }
.jresa button, .jresa input, .jresa textarea { font: inherit; }
.jresa [hidden] { display: none !important; }
.jresa p { margin: 0; }

/* Titres d'étapes */
.jresa-block { margin: 0 0 56px; transition: opacity .3s ease; }
.jresa-block.is-locked .jresa-when { opacity: .45; pointer-events: none; }
.jresa .jresa-title { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--j-serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--j-deep); }
.jresa .jresa-title--center { justify-content: center; }
.jresa-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--j-sun); color: var(--j-deep); font-size: 21px; font-style: italic; }
.jresa-hint { margin: -8px 0 18px !important; color: var(--j-muted); }

/* 1. Séances */
.jresa-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.jresa-service { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; margin: 0; padding: 26px 24px 24px; text-align: left; background: #fff; border: 1.5px solid var(--j-line); border-radius: var(--j-radius); color: var(--j-ink); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.jresa-service:hover { transform: translateY(-3px); box-shadow: var(--j-shadow); border-color: var(--j-sun); }
.jresa-service:focus-visible, .jresa-day:focus-visible, .jresa-slot:focus-visible, .jresa-cal__nav:focus-visible { outline: 3px solid var(--j-sun); outline-offset: 2px; }
.jresa-service[aria-pressed="true"] { border-color: var(--j-deep); background: var(--j-cream); box-shadow: var(--j-shadow); }
.jresa-service[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--j-deep); color: #fff; font-size: 14px; }
.jresa-service__dur { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--j-sage); color: var(--j-deep); font-size: 13px; font-weight: 500; letter-spacing: .4px; }
.jresa-service__label { font-family: var(--j-serif); font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--j-deep); }
.jresa-service__desc { flex: 1; font-size: 15px; color: var(--j-muted); }
.jresa-service__price { font-family: var(--j-serif); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--j-deep); }

/* 2. Calendrier + horaires */
.jresa-when { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; transition: opacity .3s ease; }
.jresa-cal, .jresa-slots { background: #fff; border: 1px solid var(--j-line); border-radius: var(--j-radius); padding: 22px; }
.jresa-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.jresa-cal__month { font-family: var(--j-serif); font-weight: 600; font-size: 24px; color: var(--j-deep); }
.jresa-cal__nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--j-line); border-radius: 50%; background: #fff; color: var(--j-deep); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.jresa-cal__nav:hover:not(:disabled) { background: var(--j-sun); border-color: var(--j-sun); }
.jresa-cal__nav:disabled { opacity: .35; cursor: default; }
.jresa-cal__dow, .jresa-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jresa-cal__dow span { padding: 6px 0; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--j-muted); }
.jresa-cal__grid[aria-busy="true"] { opacity: .5; }
.jresa-day { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 14px; background: transparent; color: #A3ADA6; font-size: 15px; cursor: default; }
.jresa-day.is-available { background: var(--j-sage); color: var(--j-deep); font-weight: 500; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.jresa-day.is-available::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--j-leaf); }
.jresa-day.is-available:hover { background: var(--j-sun); transform: translateY(-1px); }
.jresa-day.is-selected, .jresa-day.is-selected:hover { background: var(--j-deep); color: #fff; }
.jresa-day.is-selected::after { background: var(--j-sun); }
.jresa-day.is-today { box-shadow: inset 0 0 0 1.5px var(--j-sun); }
.jresa-cal__legend { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; font-size: 13px; color: var(--j-muted); }
.jresa-dot { width: 14px; height: 14px; border-radius: 5px; background: var(--j-sage); box-shadow: inset 0 0 0 1px var(--j-leaf); }

.jresa-slots__day { font-family: var(--j-serif); font-weight: 600; font-size: 23px; line-height: 1.2; color: var(--j-deep); }
.jresa-slots__group { margin: 18px 0 8px !important; font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--j-leaf); }
.jresa-slots__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.jresa-slot { min-height: 46px; margin: 0; padding: 0 8px; border: 1.5px solid var(--j-line); border-radius: 999px; background: #fff; color: var(--j-deep); font-weight: 500; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.jresa-slot:hover { border-color: var(--j-sun); background: var(--j-cream); }
.jresa-slot[aria-pressed="true"] { background: var(--j-deep); border-color: var(--j-deep); color: #fff; }
.jresa-empty { margin-top: 12px !important; color: var(--j-muted); font-size: 15px; }
.jresa-alert { margin: 12px 0 4px !important; padding: 12px 16px; border-radius: 14px; background: var(--j-cream); color: var(--j-gold); font-size: 15px; font-weight: 500; }
.jresa-note { margin-top: 18px !important; font-size: 13px; color: var(--j-muted); }

/* Récapitulatif */
.jresa-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 22px; padding: 20px 24px; background: var(--j-cream); border-radius: var(--j-radius); }
.jresa-summary strong { display: block; font-family: var(--j-serif); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--j-deep); }
.jresa-summary__meta, .jresa-summary__when { display: block; font-size: 15px; color: var(--j-ink); }
.jresa-summary__when { font-weight: 500; color: var(--j-deep); }
.jresa-summary--center { justify-content: center; text-align: center; max-width: 560px; margin: 24px auto; }
.jresa-link { margin: 0; padding: 10px 0; border: 0; background: none; color: var(--j-gold); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jresa-link:hover { color: var(--j-deep); }

/* 3. Formulaire */
.jresa-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: 28px; background: #fff; border: 1px solid var(--j-line); border-radius: var(--j-radius); }
.jresa-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jresa-field--full { grid-column: 1 / -1; }
.jresa-fieldset { margin: 0; padding: 0; border: 0; }
.jresa-field > label, .jresa-legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--j-deep); }
.jresa-opt { font-weight: 300; color: var(--j-muted); }
.jresa-form input[type="text"], .jresa-form input[type="email"], .jresa-form input[type="tel"], .jresa-form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #C9D6C4; border-radius: 14px; background: #FCFDFB; color: var(--j-ink); font-size: 16px; }
.jresa-form textarea { min-height: 110px; resize: vertical; }
.jresa-form input:focus, .jresa-form textarea:focus { outline: 3px solid rgba(246, 185, 59, .45); outline-offset: 0; border-color: var(--j-leaf); }
.jresa-formats { display: flex; flex-wrap: wrap; gap: 10px; }
.jresa-format { position: relative; cursor: pointer; }
.jresa-format input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jresa-format span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 1.5px solid var(--j-line); border-radius: 999px; color: var(--j-deep); font-weight: 500; transition: background .2s ease, border-color .2s ease; }
.jresa-format:hover span { border-color: var(--j-sun); }
.jresa-format input:checked + span { background: var(--j-deep); border-color: var(--j-deep); color: #fff; }
.jresa-format input:focus-visible + span { outline: 3px solid var(--j-sun); outline-offset: 2px; }
.jresa-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--j-ink); cursor: pointer; }
.jresa-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--j-deep); }
.jresa-consent a { color: var(--j-gold); }
.jresa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.jresa-error { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: #FDECEA; color: #8A1F11; font-size: 15px; }
.jresa-submit { grid-column: 1 / -1; justify-self: start; min-height: 56px; margin: 0; padding: 0 34px; border: 0; border-radius: 999px; background: var(--j-sun); color: var(--j-deep); font-size: 17px; font-weight: 500; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(220, 150, 30, .75); transition: transform .2s ease, background .2s ease, color .2s ease; }
.jresa-submit:hover:not(:disabled) { transform: translateY(-2px); background: var(--j-deep); color: #fff; }
.jresa-submit:disabled { opacity: .65; cursor: progress; }

/* Confirmation, annulation, messages */
.jresa-done, .jresa-cancel { max-width: 760px; margin: 0 auto; padding: 48px 28px; text-align: center; background: #fff; border: 1px solid var(--j-line); border-radius: 28px; box-shadow: var(--j-shadow); }
.jresa-done:focus { outline: none; }
.jresa-cancel .jresa-title { justify-content: center; }
.jresa-cancel p { margin-bottom: 14px; }
.jresa-done__icon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 16px; border-radius: 50%; background: var(--j-sun); color: var(--j-deep); }
.jresa-done__text { font-size: 17px; }
.jresa-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.jresa .jresa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0; padding: 0 26px; border: 1.5px solid var(--j-deep); border-radius: 999px; background: #fff; color: var(--j-deep); font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.jresa .jresa-btn:hover { background: var(--j-sage); }
.jresa .jresa-btn--solid { background: var(--j-deep); color: #fff; }
.jresa .jresa-btn--solid:hover { background: var(--j-sun); border-color: var(--j-sun); color: var(--j-deep); }
.jresa-notice { margin-bottom: 28px !important; padding: 16px 20px; border-radius: 16px; background: var(--j-sage); color: var(--j-deep); font-weight: 500; }
.jresa-notice--warn { background: var(--j-cream); color: var(--j-gold); }

/* Mobile */
@media (max-width: 780px) {
	.jresa-when { grid-template-columns: minmax(0, 1fr); }
	.jresa-cal, .jresa-slots { padding: 16px; }
	.jresa-cal__dow, .jresa-cal__grid { gap: 4px; }
	.jresa-day { border-radius: 10px; font-size: 14px; }
}
@media (max-width: 640px) {
	.jresa-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.jresa-submit { justify-self: stretch; }
	.jresa-done, .jresa-cancel { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.jresa *, .jresa *::before, .jresa *::after { transition: none !important; }
}
