/* Pharmacie – Commander / Réserver — v1.1.3
   Changez --pdk-accent pour adapter la couleur au site. */

/* Défilement fluide vers le formulaire, compensé pour l'en-tête fixe. */
html { scroll-behavior: smooth; }
#pdk-formulaire { scroll-margin-top: 120px; }

.pdk {
	--pdk-accent: #1d4ed8;
	--pdk-border: #d5dbe5;
	--pdk-radius: 14px;
	--pdk-gap: 16px;
	max-width: 860px;
	margin: 0 auto;
	font-size: 16px; /* Taille propre au formulaire : reste compact quel que soit le thème. */
	line-height: 1.5;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}
.pdk *,
.pdk *::before,
.pdk *::after { box-sizing: border-box; }

.pdk .pdk-form { display: grid; gap: 20px; min-width: 0; margin: 0; }
.pdk .pdk-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pdk .pdk-field[hidden] { display: none !important; }
.pdk .pdk-label,
.pdk .pdk-field legend { display: block; font-weight: 600; margin: 0 0 8px; padding: 0; font-size: 1em; }
.pdk .pdk-req { color: #c62828; }
.pdk .pdk-opt { font-weight: 400; opacity: .7; }
.pdk .pdk-hint { display: block; font-size: .875em; opacity: .75; margin-top: 6px; line-height: 1.4; }

/* Champs : jamais plus larges que le formulaire. */
.pdk .pdk-input,
.pdk input[type="text"],
.pdk input[type="email"],
.pdk input[type="tel"],
.pdk input[type="file"],
.pdk textarea,
.pdk select {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--pdk-border);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 1em;
	line-height: 1.4;
	box-shadow: none;
}
.pdk input[type="file"] { padding: 9px 12px; font-size: .9em; }
.pdk textarea { min-height: 88px; resize: vertical; }
.pdk .pdk-input:focus,
.pdk textarea:focus { outline: 2px solid var(--pdk-accent); outline-offset: 1px; border-color: var(--pdk-accent); }

/* Cartes de choix : 2 colonnes sur ordinateur, 1 colonne sur téléphone. */
.pdk .pdk-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--pdk-gap);
}
.pdk .pdk-choice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--pdk-border);
	border-radius: var(--pdk-radius);
	background: #fff;
	cursor: pointer;
	line-height: 1.35;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.pdk .pdk-choice:hover { border-color: var(--pdk-accent); }
.pdk .pdk-choice:has(input:checked) {
	border-color: var(--pdk-accent);
	box-shadow: 0 0 0 1px var(--pdk-accent);
	background: #f5f8ff;
}
.pdk .pdk-choice input { margin: 3px 0 0; accent-color: var(--pdk-accent); flex: none; width: auto; }
.pdk .pdk-choice > span { min-width: 0; font-size: 1em; font-weight: 600; overflow-wrap: anywhere; }
.pdk .pdk-choice small { display: block; margin-top: 2px; font-size: .875em; font-weight: 400; opacity: .7; line-height: 1.35; }
.pdk .pdk-choice.is-disabled { opacity: .45; cursor: not-allowed; }

.pdk .pdk-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.pdk .pdk-check input { margin: 4px 0 0; accent-color: var(--pdk-accent); flex: none; width: auto; }

.pdk .pdk-note { font-size: .9em; opacity: .8; margin: 0; line-height: 1.45; }

.pdk .pdk-submit {
	justify-self: start;
	background: var(--pdk-accent);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 14px 28px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.pdk .pdk-submit:hover { filter: brightness(1.08); }
.pdk .pdk-submit[disabled] { opacity: .6; cursor: progress; }

.pdk .pdk-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; }
.pdk .pdk-msg--success { background: #e8f5e9; color: #1b5e20; }
.pdk .pdk-msg--error { background: #fdecea; color: #8a1c1c; }

/* Champ piège anti-robots, invisible pour les humains. */
.pdk .pdk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pdk [data-pdk-mat][hidden] { display: none !important; }

@media (max-width: 768px) {
	.pdk { max-width: 100%; padding-left: 14px; padding-right: 14px; }
	.pdk .pdk-choices { grid-template-columns: 1fr; gap: 12px; }
	.pdk .pdk-choice { padding: 14px 16px; }
	.pdk .pdk-form { gap: 18px; }
}

@media (max-width: 600px) {
	.pdk .pdk-submit { width: 100%; justify-self: stretch; }
}
