/* Formulaire de réservation — styles neutres, surchargeables par le thème. */

.rdm-booking {
	--rdm-accent: #2f6b3a;
	--rdm-accent-dark: #24522d;
	--rdm-border: #dcdcdc;
	--rdm-muted: #666;
	--rdm-radius: 6px;
	max-width: 960px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.5;
}

.rdm-booking *,
.rdm-booking *::before,
.rdm-booking *::after {
	box-sizing: border-box;
}

/* Recherche ---------------------------------------------------------- */

.rdm-search {
	padding: 1.25rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	background: #fafafa;
}

.rdm-search__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}

.rdm-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 160px;
	gap: 0.25rem;
}

.rdm-field--small {
	flex: 0 1 110px;
}

.rdm-field__label {
	font-size: 0.85rem;
	font-weight: 600;
}

.rdm-field input {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	font: inherit;
	background: #fff;
}

.rdm-search__hint {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	color: var(--rdm-muted);
}

/* Une seule carte affichée : pas besoin du bouton radio. */
.rdm-card--single .rdm-card__radio {
	display: none;
}

.rdm-card--single {
	grid-template-columns: 1fr auto;
	cursor: default;
}

/* Boutons ------------------------------------------------------------ */

.rdm-btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--rdm-radius);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.rdm-btn--primary {
	background: var(--rdm-accent);
	color: #fff;
}

.rdm-btn--primary:hover:not(:disabled) {
	background: var(--rdm-accent-dark);
}

.rdm-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Messages ----------------------------------------------------------- */

.rdm-notice {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-radius: var(--rdm-radius);
	border-left: 4px solid #999;
	background: #f3f3f3;
}

.rdm-notice--error {
	border-color: #c0392b;
	background: #fdecea;
}

.rdm-notice--info {
	border-color: var(--rdm-accent);
	background: #eef6ef;
}

/* Résultats ---------------------------------------------------------- */

.rdm-results__intro {
	margin: 1.5rem 0 0.75rem;
	font-weight: 600;
}

.rdm-list {
	display: grid;
	gap: 1rem;
}

.rdm-card {
	display: grid;
	grid-template-columns: 160px 1fr auto;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	background: #fff;
}

.rdm-card--full {
	opacity: 0.6;
	grid-template-columns: 160px 1fr;
}

.rdm-card__media img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: var(--rdm-radius);
}

.rdm-card__title {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.rdm-card__kind {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: #eef6ef;
	color: var(--rdm-accent);
	font-size: 0.75rem;
	font-weight: 600;
	vertical-align: middle;
}

.rdm-card__excerpt {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	color: var(--rdm-muted);
}

.rdm-card__price {
	margin: 0;
	font-weight: 600;
}

.rdm-card__price small {
	font-weight: 400;
	color: var(--rdm-muted);
}

.rdm-card__pricing {
	margin: 0.25rem 0 0.25rem;
	font-size: 0.9rem;
}

.rdm-card__pricing p {
	margin: 0 0 0.35rem;
}

.rdm-card__pricing ul {
	margin: 0 0 0.35rem 1.1rem;
	padding: 0;
}

.rdm-card__deposit {
	display: block;
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--rdm-accent-dark);
}

.rdm-summary__deposit {
	font-weight: 600;
	color: var(--rdm-accent-dark);
}

.rdm-card__availability {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: var(--rdm-muted);
}

.rdm-card__select {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 140px;
	font-size: 0.9rem;
}

.rdm-card__select label {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-weight: 600;
}

.rdm-card__select select {
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	font: inherit;
}

.rdm-card__select small {
	font-weight: 400;
	color: var(--rdm-muted);
}

.rdm-card__subtotal {
	font-weight: 700;
	text-align: right;
}

.rdm-empty {
	padding: 1rem;
	text-align: center;
	color: var(--rdm-muted);
}

/* Récapitulatif ------------------------------------------------------ */

.rdm-summary {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	background: #fafafa;
}

.rdm-summary__line {
	display: flex;
	justify-content: space-between;
	padding: 0.25rem 0;
	font-size: 0.95rem;
}

.rdm-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0.75rem 0 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--rdm-border);
	font-size: 1.1rem;
}

.rdm-summary__amount {
	font-size: 1.4rem;
}

.rdm-summary .rdm-btn--book {
	width: 100%;
}

/* Page de confirmation WooCommerce ----------------------------------- */

.rdm-thankyou {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border: 1px solid var(--rdm-border, #dcdcdc);
	border-radius: 6px;
}

.rdm-thankyou__details {
	margin: 0;
	padding-left: 1.2rem;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 640px) {
	.rdm-card,
	.rdm-card--full {
		grid-template-columns: 1fr;
	}

	.rdm-card__media img {
		height: 160px;
	}

	.rdm-card__select {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
	}

	.rdm-card__subtotal {
		flex-basis: 100%;
	}
}

/* Formules ------------------------------------------------------------- */

.rdm-list__title {
	margin: 0 0 0.25rem;
	font-weight: 600;
}

.rdm-card--offer {
	grid-template-columns: auto 1fr auto;
	align-items: center;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.rdm-card--offer.is-selected {
	border-color: var(--rdm-accent);
	box-shadow: 0 0 0 2px rgba(47, 107, 58, 0.15);
}

.rdm-card--offer.rdm-card--full {
	cursor: default;
	grid-template-columns: auto 1fr;
}

.rdm-card__radio input {
	width: 1.2rem;
	height: 1.2rem;
	margin: 0;
	accent-color: var(--rdm-accent);
}

.rdm-card--offer .rdm-card__body > span,
.rdm-card--offer .rdm-card__body > div {
	display: block;
}

.rdm-card--offer .rdm-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.rdm-card__select-label {
	font-weight: 600;
}

.rdm-card__note {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: var(--rdm-accent);
}

@media (max-width: 640px) {
	.rdm-card--offer,
	.rdm-card--offer.rdm-card--full {
		grid-template-columns: auto 1fr;
	}

	.rdm-card--offer .rdm-card__select {
		grid-column: 2;
	}
}

/* Calendrier d'ouverture -------------------------------------------- */

.rdm-calendar {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	background: #fff;
}

.rdm-calendar__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.rdm-calendar__nav button {
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	background: #fff;
	font: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.rdm-calendar__nav button:disabled {
	opacity: 0.4;
	cursor: default;
}

.rdm-calendar__hint {
	font-size: 0.85rem;
	color: var(--rdm-muted);
	text-align: center;
}

.rdm-calendar__months {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.rdm-cal-month h4 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	text-align: center;
}

.rdm-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.rdm-cal-dow {
	text-align: center;
	font-size: 0.75rem;
	color: var(--rdm-muted);
}

.rdm-cal-day {
	padding: 0.45rem 0;
	border: 1px solid transparent;
	border-radius: var(--rdm-radius);
	font: inherit;
	font-size: 0.9rem;
	line-height: 1;
	cursor: pointer;
}

.rdm-cal-day.is-open {
	background: #eef6ef;
	color: var(--rdm-accent-dark);
}

.rdm-cal-day.is-closed {
	background: #f0f0f0;
	color: #aaa;
	text-decoration: line-through;
}

.rdm-cal-day.is-past {
	opacity: 0.4;
	cursor: default;
	text-decoration: none;
}

.rdm-cal-day.is-open:not(:disabled):hover {
	border-color: var(--rdm-accent);
}

.rdm-cal-day.is-between {
	background: #d6ead9;
}

.rdm-cal-day.is-checkin,
.rdm-cal-day.is-checkout {
	background: var(--rdm-accent);
	color: #fff;
}

.rdm-calendar__legend {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	color: var(--rdm-muted);
}

.rdm-calendar__legend span {
	display: inline-block;
	margin-right: 0.75rem;
	padding: 0.1rem 0.5rem;
	border-radius: 3px;
}

.rdm-calendar__legend .is-open   { background: #eef6ef; }
.rdm-calendar__legend .is-closed { background: #f0f0f0; text-decoration: line-through; }

/* Coordonnées (règlement sur place) ------------------------------------ */

.rdm-customer {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	background: #fff;
}

.rdm-customer__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.rdm-customer__fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem 1rem;
}

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

.rdm-field textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	font: inherit;
	resize: vertical;
}

.rdm-field input.is-invalid,
.rdm-field textarea.is-invalid {
	border-color: #c0392b;
}

.rdm-field--trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rdm-customer__hint {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: var(--rdm-muted);
}

.rdm-confirmation {
	margin-top: 1.5rem;
	padding: 1.5rem;
	border: 2px solid var(--rdm-accent);
	border-radius: var(--rdm-radius);
	background: #eef6ef;
}

.rdm-confirmation__title {
	margin: 0 0 0.5rem;
	color: var(--rdm-accent-dark);
}

.rdm-confirmation__text {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.rdm-confirmation__message {
	margin: 0;
	color: var(--rdm-muted);
}

@media (max-width: 640px) {
	.rdm-customer__fields {
		grid-template-columns: 1fr;
	}
}

/* Tableau de bord gardiens --------------------------------------------- */

.rdm-dash {
	--rdm-accent: #2f6b3a;
	--rdm-accent-dark: #24522d;
	--rdm-border: #dcdcdc;
	--rdm-muted: #666;
	--rdm-radius: 6px;
	font-size: 0.95rem;
	line-height: 1.4;
}

.rdm-dash *,
.rdm-dash *::before,
.rdm-dash *::after {
	box-sizing: border-box;
}

.rdm-dash--login {
	max-width: 420px;
}

.rdm-dash__login {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.rdm-dash__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.rdm-dash__header h2 {
	margin: 0;
}

.rdm-dash__nav,
.rdm-dash__tools {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.rdm-dash .rdm-btn {
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--rdm-border);
	background: #fff;
	color: inherit;
	text-decoration: none;
	font-weight: 500;
}

.rdm-dash__pick input {
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	font: inherit;
}

.rdm-inline {
	display: inline;
}

.rdm-dash__date {
	margin: 0 0 1rem;
	font-size: 1.2rem;
	font-weight: 600;
}

.rdm-dash__occupancy {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.rdm-dash__tile {
	flex: 1 1 200px;
	padding: 1rem 1.25rem;
	border: 2px solid var(--rdm-accent);
	border-radius: var(--rdm-radius);
	background: #eef6ef;
}

.rdm-dash__tile.is-full {
	border-color: #c0392b;
	background: #fdecea;
}

.rdm-dash__tile.is-closed {
	border-color: #bbb;
	background: #f0f0f0;
	color: #777;
}

.rdm-dash__tile-label {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rdm-muted);
}

.rdm-dash__tile-main {
	display: block;
	font-size: 1.6rem;
	line-height: 1.2;
}

.rdm-dash__tile-main strong {
	font-size: 2.2rem;
}

.rdm-dash__tile-sub {
	display: block;
	font-weight: 600;
}

.rdm-dash__section {
	margin-bottom: 1.5rem;
}

.rdm-dash__section h3 {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.rdm-dash__count {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--rdm-muted);
}

.rdm-dash__empty {
	margin: 0;
	color: var(--rdm-muted);
}

.rdm-dash__scroll {
	overflow-x: auto;
}

.rdm-dash__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.rdm-dash__table th,
.rdm-dash__table td {
	padding: 0.5rem 0.6rem;
	border: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: top;
}

.rdm-dash__table thead th {
	background: #f4f4f4;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.rdm-dash__table small {
	display: block;
	color: var(--rdm-muted);
}

.rdm-dash__num {
	text-align: center !important;
	font-weight: 600;
}

.rdm-dash__notes {
	max-width: 240px;
	white-space: pre-line;
	font-size: 0.9rem;
}

.rdm-dash__table tr.is-paid td {
	background: #f3faf4;
}

.rdm-dash__table tr.is-tentative td {
	background: #fff8e6;
}

.rdm-dash__paid {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	align-items: flex-start;
}

.rdm-dash__amount {
	font-weight: 600;
}

.rdm-dash .rdm-btn--paid {
	border-color: var(--rdm-accent);
	color: var(--rdm-accent-dark);
	background: #eef6ef;
}

.rdm-dash .rdm-btn--topay {
	border-color: #d9a400;
	color: #7a5a00;
	background: #fff8e6;
}

.rdm-dash__table--week th a {
	color: inherit;
	text-decoration: none;
}

.rdm-dash__table--week td.is-partial { background: #fff4d6; }
.rdm-dash__table--week td.is-full    { background: #f8d7da; }
.rdm-dash__table--week td.is-closed  { background: #eee; color: #999; }

@media print {
	.rdm-dash__nav,
	.rdm-dash__tools,
	.rdm-dash__paid button,
	.rdm-dash__week {
		display: none !important;
	}

	.rdm-dash__table th,
	.rdm-dash__table td {
		border-color: #999;
	}
}

/* Annonce (modale page d'accueil) -------------------------------------- */

.rdm-ann-open {
	overflow: hidden;
}

.rdm-ann {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.rdm-ann[hidden] {
	display: none;
}

.rdm-ann__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.rdm-ann__box {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	border-radius: 8px;
	background: #fff;
	color: #222;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	animation: rdm-ann-in 0.25s ease-out;
}

@keyframes rdm-ann-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

.rdm-ann__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 1;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #222;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.rdm-ann__media img {
	display: block;
	width: 100%;
	max-height: 320px;
	height: auto;
	object-fit: cover;
	border-radius: 8px 8px 0 0;
}

.rdm-ann__body {
	padding: 1.5rem;
}

.rdm-ann__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.rdm-ann__content > :first-child {
	margin-top: 0;
}

.rdm-ann__content > :last-child {
	margin-bottom: 0;
}

.rdm-ann__more {
	margin: 1rem 0 0;
}

.rdm-ann__more-link {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border-radius: 6px;
	background: #2f6b3a;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}

.rdm-ann__more-link:hover {
	background: #24522d;
}

.rdm-ann__content img {
	max-width: 100%;
	height: auto;
}

/* Tableau de bord : demandes à traiter / arrhes ------------------------- */

.rdm-dash__requests h3 {
	color: #8a4300;
}

.rdm-dash__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 0.75rem;
}

.rdm-dash__request {
	padding: 0.9rem 1rem;
	border: 2px solid #d98a2b;
	border-radius: var(--rdm-radius);
	background: #fffaf3;
}

.rdm-dash__request p {
	margin: 0 0 0.4rem;
}

.rdm-dash__request small {
	color: var(--rdm-muted);
}

.rdm-dash__request-head {
	font-size: 1.05rem;
}

.rdm-dash__decide {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.rdm-dash .rdm-btn--accept {
	border-color: var(--rdm-accent);
	background: var(--rdm-accent);
	color: #fff;
	font-weight: 600;
}

.rdm-dash .rdm-btn--refuse {
	border-color: #b32d2e;
	color: #b32d2e;
	background: #fff;
	list-style: none;
	cursor: pointer;
}

.rdm-dash__decide summary::-webkit-details-marker {
	display: none;
}

.rdm-dash__refuse {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: 0.5rem;
	min-width: 240px;
}

.rdm-dash__refuse textarea {
	padding: 0.4rem;
	border: 1px solid var(--rdm-border);
	border-radius: var(--rdm-radius);
	font: inherit;
}

.rdm-dash__refuse .rdm-btn--refuse {
	background: #b32d2e;
	color: #fff;
}

.rdm-dash__awaiting {
	margin: 0;
	padding-left: 1.2rem;
}

.rdm-dash__awaiting li {
	margin-bottom: 0.3rem;
}

.rdm-dash__deposit {
	display: block;
	font-size: 0.8rem;
	color: #1d4f8c;
}

.rdm-dash__deposit.is-paid {
	color: var(--rdm-accent-dark);
}

@media print {
	.rdm-dash__decide {
		display: none !important;
	}
}
