/* =========================================================
   LDDP Contact — page contact et newsletter
   Hex en dur, variables --lddp-* scopées sur chaque bloc racine.
   Polices auto-hébergées par lddp-fonts (EB Garamond, Space Mono).
   ========================================================= */

.lddp-contact-hero,
.lddp-contact,
.lddp-newsletter {
	--lddp-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
	--lddp-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	--lddp-largeur: 1120px;
	--lddp-gouttiere: clamp(20px, 5vw, 48px);
	box-sizing: border-box;
	font-family: var(--lddp-serif);
	-webkit-font-smoothing: antialiased;
}

.lddp-contact-hero *,
.lddp-contact *,
.lddp-newsletter *,
.lddp-contact-hero *::before,
.lddp-contact *::before,
.lddp-newsletter *::before {
	box-sizing: inherit;
}

/* Palette Identité (sombre) */
.lddp-contact-hero,
.lddp-newsletter {
	--lddp-fond: #12100E;
	--lddp-surface: #1C1917;
	--lddp-bordure: #322D28;
	--lddp-texte: #F1EDE4;
	--lddp-texte-2: #A69C8D;
	--lddp-accent: #D98E3B;
	--lddp-survol: #8C3B2E;
}

/* Palette Décision (clair) */
.lddp-contact {
	--lddp-fond: #F3EDE1;
	--lddp-surface: #FBF7EE;
	--lddp-bordure: #E4DBC9;
	--lddp-texte: #221D18;
	--lddp-texte-2: #7A7166;
	--lddp-accent: #8C3B2E;
	--lddp-survol: #B5581E;
}

.lddp-sr,
.lddp-contact__piege {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Hero ---------- */

.lddp-contact-hero {
	background: #12100E;
	color: #F1EDE4;
	border-bottom: 1px solid #322D28;
	padding: clamp(56px, 9vw, 112px) var(--lddp-gouttiere) clamp(36px, 5vw, 56px);
}

.lddp-contact-hero__inner {
	max-width: var(--lddp-largeur);
	margin: 0 auto;
}

.lddp-contact-hero .lddp-contact-hero__titre {
	font-family: var(--lddp-serif);
	font-weight: 400;
	font-size: clamp(44px, 7.5vw, 96px);
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: #F1EDE4;
	margin: 0;
	padding: 0;
}

.lddp-contact-hero .lddp-contact-hero__intro {
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.5;
	color: #A69C8D;
	max-width: 34em;
	margin: 20px 0 0;
	padding: 0;
}

/* ---------- Contact ---------- */

.lddp-contact {
	background: #F3EDE1;
	color: #221D18;
	padding: clamp(48px, 7vw, 88px) var(--lddp-gouttiere);
}

.lddp-contact__inner {
	max-width: var(--lddp-largeur);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

/* Colonne d'infos */

.lddp-contact__infos {
	border-top: 1px solid #221D18;
	padding-top: 16px;
}

.lddp-contact .lddp-contact__titre {
	font-family: var(--lddp-serif);
	font-weight: 400;
	font-size: clamp(26px, 2.6vw, 32px);
	line-height: 1.15;
	color: #221D18;
	margin: 0 0 24px;
	padding: 0;
}

.lddp-contact__liste {
	margin: 0;
	padding: 0;
}

.lddp-contact__info + .lddp-contact__info {
	margin-top: 20px;
}

.lddp-contact__info dt {
	font-family: var(--lddp-mono);
	font-size: 12px;
	line-height: 1.4;
	color: #7A7166;
	margin: 0 0 4px;
}

.lddp-contact__info dd {
	font-size: 18px;
	line-height: 1.5;
	color: #221D18;
	margin: 0;
}

.lddp-contact__info dd.lddp-contact__note {
	font-size: 16px;
	color: #7A7166;
	max-width: 26em;
}

.lddp-contact__info a {
	color: #8C3B2E;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.lddp-contact__info a:hover {
	color: #B5581E;
}

/* Carte formulaire */

.lddp-contact__carte {
	background: #FBF7EE;
	border: 1px solid #E4DBC9;
	padding: clamp(24px, 3.5vw, 40px);
}

.lddp-contact__form {
	margin: 0;
}

.lddp-contact__rangee {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
}

.lddp-contact .lddp-contact__champ {
	margin: 0 0 28px;
	padding: 0;
}

.lddp-contact__champ label,
.lddp-contact__objets legend {
	display: block;
	font-family: var(--lddp-mono);
	font-size: 12px;
	line-height: 1.4;
	color: #7A7166;
	margin: 0 0 6px;
	padding: 0;
}

/* Champs soulignés */
.lddp-contact .lddp-contact__champ input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 6px 0 8px;
	font-family: var(--lddp-serif);
	font-size: 20px;
	line-height: 1.3;
	color: #221D18;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #221D18;
	border-radius: 0;
	box-shadow: none;
}

/* Message encadré */
.lddp-contact .lddp-contact__champ textarea {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-height: 168px;
	margin: 0;
	padding: 12px 14px;
	font-family: var(--lddp-serif);
	font-size: 18px;
	line-height: 1.55;
	color: #221D18;
	background: #F3EDE1;
	border: 1px solid #E4DBC9;
	border-radius: 0;
	box-shadow: none;
	resize: vertical;
}

.lddp-contact .lddp-contact__champ textarea:hover {
	border-color: #7A7166;
}

.lddp-contact .lddp-contact__champ input:focus-visible,
.lddp-contact .lddp-contact__champ textarea:focus-visible {
	outline: 2px solid #8C3B2E;
	outline-offset: 2px;
}

.lddp-contact .lddp-contact__champ input:focus,
.lddp-contact .lddp-contact__champ textarea:focus {
	border-color: #8C3B2E;
}

/* Objets en pastilles (vrais boutons radio, accessibles au clavier) */

.lddp-contact .lddp-contact__objets {
	border: 0;
	margin: 0 0 28px;
	padding: 0;
	min-width: 0;
}

.lddp-contact__objets legend {
	margin-bottom: 10px;
}

.lddp-contact__pastilles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lddp-contact__pastille {
	position: relative;
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.lddp-contact__pastille input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.lddp-contact__pastille span {
	display: inline-block;
	font-family: var(--lddp-mono);
	font-size: 13px;
	line-height: 1.2;
	color: #221D18;
	background: transparent;
	border: 1px solid #E4DBC9;
	padding: 9px 14px;
	transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.lddp-contact__pastille:hover span {
	border-color: #7A7166;
}

.lddp-contact__pastille input:checked + span {
	background: #8C3B2E;
	border-color: #8C3B2E;
	color: #FBF7EE;
}

.lddp-contact__pastille input:focus-visible + span {
	outline: 2px solid #8C3B2E;
	outline-offset: 2px;
}

/* Erreurs */

.lddp-contact__erreur {
	display: block;
	font-family: var(--lddp-mono);
	font-size: 12px;
	line-height: 1.4;
	color: #8C3B2E;
	margin-top: 6px;
}

.lddp-contact__erreur:empty {
	display: none;
}

.lddp-contact .is-erreur input:not([type="radio"]) {
	border-bottom-width: 2px;
	border-bottom-color: #8C3B2E;
}

.lddp-contact .is-erreur textarea {
	border-color: #8C3B2E;
}

.lddp-contact .is-erreur .lddp-contact__pastille span {
	border-color: #8C3B2E;
}

/* Mention RGPD */

.lddp-contact .lddp-contact__rgpd {
	font-family: var(--lddp-mono);
	font-size: 12px;
	line-height: 1.55;
	color: #7A7166;
	margin: -8px 0 24px;
	padding: 0;
}

.lddp-contact__rgpd a,
.lddp-newsletter .inf-rgpd a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lddp-contact__rgpd a:hover { color: #8C3B2E; }
.lddp-newsletter .inf-rgpd a:hover { color: #D98E3B; }

/* Pied : statut + bouton */

.lddp-contact__pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
}

.lddp-contact .lddp-contact__statut {
	flex: 1 1 220px;
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.4;
	color: #7A7166;
}

.lddp-contact .lddp-contact__statut.is-ok {
	color: #221D18;
}

.lddp-contact .lddp-contact__statut.is-erreur {
	color: #8C3B2E;
}

.lddp-contact .lddp-contact__bouton {
	-webkit-appearance: none;
	appearance: none;
	margin: 0 0 0 auto;
	padding: 14px 26px;
	font-family: var(--lddp-mono);
	font-size: 14px;
	line-height: 1.2;
	color: #FBF7EE;
	background: #8C3B2E;
	border: 1px solid #8C3B2E;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.lddp-contact .lddp-contact__bouton:hover {
	background: #B5581E;
	border-color: #B5581E;
}

.lddp-contact .lddp-contact__bouton:focus-visible {
	outline: 2px solid #221D18;
	outline-offset: 3px;
}

.lddp-contact .lddp-contact__bouton[disabled] {
	cursor: progress;
	background: #7A7166;
	border-color: #7A7166;
}

.lddp-contact__noscript {
	font-size: 17px;
	margin: 16px 0 0;
}

/* ---------- Newsletter (Identité, surface) ---------- */

.lddp-newsletter {
	background: #1C1917;
	color: #F1EDE4;
	border-top: 1px solid #322D28;
	padding: clamp(44px, 6vw, 72px) var(--lddp-gouttiere);
}

.lddp-newsletter__inner {
	max-width: var(--lddp-largeur);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: center;
}

.lddp-newsletter .lddp-newsletter__titre {
	font-family: var(--lddp-serif);
	font-weight: 400;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.1;
	color: #F1EDE4;
	margin: 0;
	padding: 0;
}

.lddp-newsletter .lddp-newsletter__intro {
	font-size: 18px;
	line-height: 1.5;
	color: #A69C8D;
	max-width: 30em;
	margin: 12px 0 0;
	padding: 0;
}

.lddp-newsletter .lddp-newsletter__form {
	position: relative;
	margin: 0;
}

/* Champ + bouton soudés dans un seul cadre */
.lddp-newsletter__ligne {
	display: flex;
	align-items: stretch;
	border: 1px solid #322D28;
	background: #12100E;
	transition: border-color 120ms ease;
}

.lddp-newsletter__ligne:focus-within {
	border-color: #D98E3B;
}

.lddp-newsletter .inf-input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.lddp-newsletter .inf-input input[type="email"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0 16px;
	font-family: var(--lddp-mono);
	font-size: 14px;
	color: #F1EDE4;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.lddp-newsletter .inf-input input[type="email"]::placeholder {
	color: #A69C8D;
	opacity: 1;
}

.lddp-newsletter .inf-input input[type="email"]:focus-visible {
	outline: none; /* le cadre .lddp-newsletter__ligne porte le focus */
}

.lddp-newsletter .inf-submit {
	flex: 0 0 auto;
	margin: 0;
	text-align: left;
}

.lddp-newsletter .inf-submit input[type="submit"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	height: 100%;
	min-height: 52px;
	margin: 0 !important; /* annule le margin-top inline d'origine si réintroduit */
	padding: 0 22px;
	font-family: var(--lddp-mono);
	font-size: 14px;
	font-weight: 400;
	color: #12100E;
	background: #D98E3B;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
}

.lddp-newsletter .inf-submit input[type="submit"]:hover {
	background: #8C3B2E;
	color: #F1EDE4;
}

.lddp-newsletter .inf-submit input[type="submit"]:focus-visible {
	outline: 2px solid #F1EDE4;
	outline-offset: -4px;
}

.lddp-newsletter .inf-submit input.disabled {
	opacity: 0.5;
	cursor: progress;
}

/* Erreurs ajoutées par webform_index.js */
.lddp-newsletter .inf-input.inf-error input[type="email"] {
	color: #F1EDE4;
}

.lddp-newsletter__ligne:has(.inf-error) {
	border-color: #D98E3B;
}

.lddp-newsletter .inf-message {
	display: none;
}

.lddp-newsletter .inf-input.inf-error .inf-message,
.lddp-newsletter .inf-error span.inf-message {
	display: block;
	font-family: var(--lddp-mono);
	font-size: 12px;
	color: #D98E3B;
	padding: 0 16px 8px;
}

.lddp-newsletter .inf-rgpd {
	font-family: var(--lddp-mono);
	font-size: 12px;
	line-height: 1.55;
	color: #A69C8D;
	margin: 14px 0 0;
}

/* Message de succès */
.lddp-newsletter .lddp-newsletter__succes {
	font-size: 20px;
	line-height: 1.4;
	color: #F1EDE4;
	margin: 0 0 12px;
}

.lddp-newsletter .inf-btn {
	font-family: var(--lddp-mono);
	font-size: 13px;
	color: #D98E3B;
	background: transparent;
	box-shadow: none;
	border: 0;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lddp-newsletter .inf-btn:hover {
	color: #F1EDE4;
}

/* Widget Altcha (mode flottant) */
.lddp-newsletter altcha-widget {
	--altcha-color-base: #1C1917;
	--altcha-color-text: #F1EDE4;
	--altcha-color-border: #322D28;
	--altcha-color-border-focus: #D98E3B;
	--altcha-border-radius: 0;
	--altcha-max-width: 100%;
	font-family: var(--lddp-mono);
}

.lddp-newsletter .altcha-label span {
	color: #F1EDE4;
}

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

@media (max-width: 860px) {
	.lddp-contact__inner,
	.lddp-newsletter__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.lddp-contact__rangee {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.lddp-contact .lddp-contact__bouton {
		width: 100%;
		margin-left: 0;
	}

	.lddp-newsletter__ligne {
		flex-direction: column;
	}

	.lddp-newsletter .inf-submit input[type="submit"] {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lddp-contact *,
	.lddp-newsletter * {
		transition: none !important;
	}
}
