/* Vallon.info – Avis de décès
 * Sobre et actuel : surfaces douces, coins arrondis, typographie sans empattement,
 * beaucoup d'air. Aucune couleur vive ; le bleu de la marque ne sert qu'au focus.
 */
.vam {
	--vam-ink: #23272b;
	--vam-muted: #5f6871;
	--vam-line: #dcdfe3;
	--vam-field: #b9c0c7;
	--vam-surface: #f4f5f6;
	--vam-action: #2f3b46;
	--vam-action-hover: #1f2830;
	--vam-focus: #4db2ec;
	--vam-error: #b3261e;
	--vam-paper: #faf9f7;
	--vam-paper-line: #e8e5df;
	--vam-radius: 14px;
	--vam-radius-sm: 10px;
	--vam-shadow: 0 1px 2px rgba(20, 24, 28, 0.04), 0 8px 24px rgba(20, 24, 28, 0.06);
	--vam-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--vam-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	container-type: inline-size;
	container-name: vam;
	color: var(--vam-ink);
	font-family: var(--vam-sans);
	font-size: 16px;
	line-height: 1.55;
	white-space: normal;
	text-align: left;
	background: none;
}
.vam *, .vam *::before, .vam *::after { box-sizing: border-box; }
/* Le thème ou un bloc mal choisi ne doit pas imposer sa police (ex. monospace). */
.vam :where(p, label, legend, span, li, a, button, h2, h3, strong, em, input, select, textarea) { font-family: inherit; }
/* Seule la citation garde une touche d'empattement. */
.vam :where(.vam-n-quote, .vam-n-quote *) { font-family: var(--vam-serif); }

.vam-lead { max-width: 62ch; margin: 0 0 28px; font-size: 17px; }

/* Mise en page : champs à gauche, aperçu collant à droite */
.vam-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	grid-template-areas: "fields preview" "pay preview";
	gap: 8px 44px;
	align-items: start;
}
.vam-fields { grid-area: fields; min-width: 0; }
.vam-aside { grid-area: preview; position: sticky; top: 96px; }
.vam-pay { grid-area: pay; min-width: 0; }

@container vam (max-width: 860px) {
	.vam-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fields" "preview" "pay"; }
	.vam-aside { position: static; margin-top: 12px; }
}

/* Sections */
.vam fieldset.vam-section { border: 0; margin: 0; padding: 26px 0 14px; min-width: 0; border-top: 1px solid var(--vam-line); }
.vam-fields fieldset.vam-section:first-child { border-top: 0; padding-top: 0; }
.vam legend.vam-legend {
	float: left; width: 100%; padding: 0; margin: 0 0 6px;
	font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--vam-ink);
	display: flex; align-items: baseline; gap: 12px;
}
.vam legend.vam-legend + * { clear: both; }
.vam-step {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border: 1px solid var(--vam-ink); border-radius: 50%;
	font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none;
	transform: translateY(-2px);
}
.vam-intro { clear: both; color: var(--vam-muted); margin: 0 0 18px; max-width: 62ch; font-size: 15px; }

/* Grille de champs */
.vam-grid { clear: both; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.vam-w-full { grid-column: span 6; }
.vam-w-half { grid-column: span 3; }
.vam-w-third { grid-column: span 2; }
.vam-w-twothirds { grid-column: span 4; }
@container vam (max-width: 560px) {
	.vam-w-half, .vam-w-third, .vam-w-twothirds { grid-column: span 6; }
}

/* Champs */
.vam .vam-field > label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 6px; color: var(--vam-ink); }
.vam-opt { font-weight: 400; color: var(--vam-muted); font-size: 13px; margin-left: 4px; }
.vam .vam-field input[type="text"],
.vam .vam-field input[type="email"],
.vam .vam-field input[type="tel"],
.vam .vam-field input[type="date"],
.vam .vam-field select,
.vam .vam-field textarea {
	display: block; width: 100%; max-width: none; margin: 0;
	min-height: 46px; padding: 10px 12px;
	font: inherit; font-size: 16px; line-height: 1.45; color: var(--vam-ink);
	background: #fff; border: 1px solid var(--vam-field); border-radius: var(--vam-radius-sm);
	box-shadow: none;
}
.vam .vam-field textarea { min-height: 0; resize: vertical; }
.vam .vam-field input[type="file"] { display: block; width: 100%; font-size: 15px; padding: 8px 0; }
.vam .vam-field input:focus,
.vam .vam-field select:focus,
.vam .vam-field textarea:focus,
.vam .vam-check input:focus-visible,
.vam .vam-submit:focus-visible,
.vam .vam-button:focus-visible {
	outline: 3px solid var(--vam-focus); outline-offset: 1px; border-color: var(--vam-action);
}
.vam .vam-field ::placeholder { color: #8b939b; opacity: 1; }
.vam-help { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--vam-muted); }
.vam-err { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--vam-error); }
.vam .vam-field.has-error input,
.vam .vam-field.has-error select,
.vam .vam-field.has-error textarea { border-color: var(--vam-error); border-width: 2px; }

.vam .vam-check, .vam .vam-field > label.vam-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; margin: 0; }
.vam .vam-check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vam-action); }
.vam .vam-check a { color: inherit; text-decoration: underline; }

/* Pot de miel */
.vam-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Erreurs */
.vam-errors { border-left: 4px solid var(--vam-error); background: #fbeeed; padding: 14px 18px; margin: 0 0 28px; }
.vam-errors:focus { outline: none; }
.vam-errors p { margin: 0 0 6px; }
.vam-errors ul { margin: 0; padding-left: 20px; }
.vam-errors a { color: var(--vam-error); font-weight: 600; }

/* Aperçu et carte d'avis */
.vam-aside-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--vam-muted); letter-spacing: 0.02em; }
.vam-aside-note { margin: 10px 0 0; font-size: 13px; color: var(--vam-muted); }
.vam-card {
	background: var(--vam-paper); border: 1px solid var(--vam-paper-line); border-radius: var(--vam-radius);
	overflow: hidden;
}
.vam-card-inner {
	padding: 30px 26px 26px; min-height: 160px;
	font-size: 15.5px; line-height: 1.75; color: var(--vam-ink);
	text-align: center; overflow-wrap: anywhere;
}
.vam-card-inner p { margin: 0 0 1em; }
.vam-card-head { margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--vam-paper-line); }
.vam-card-photo {
	display: block; width: 112px; height: 140px; object-fit: cover; margin: 0 auto 16px;
	border-radius: var(--vam-radius-sm); box-shadow: var(--vam-shadow);
}
.vam .vam-card-head p.vam-card-name { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.vam .vam-card-head p.vam-card-dates { margin: 6px 0 0; font-size: 14px; color: var(--vam-muted); font-variant-numeric: tabular-nums; }
.vam-n-loc { font-size: 0.8em; letter-spacing: 0.14em; color: var(--vam-muted); }
.vam-n-loc strong { font-weight: 600; }
.vam-n-quote { color: #4b5258; font-size: 1.05em; }
.vam-n-name { font-size: 1.3em; line-height: 1.35; margin: 1.2em 0 !important; letter-spacing: -0.01em; }
.vam-n-name strong { font-weight: 600; }
.vam-n-mention { font-size: 0.85em; color: var(--vam-muted); margin-bottom: 0 !important; }
.vam-card-empty { color: var(--vam-muted); margin: 36px 0 !important; font-size: 15px; }

/* Paiement */
.vam-pay fieldset.vam-section { border-top: 1px solid var(--vam-line); }
.vam-total {
	clear: both; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	background: var(--vam-surface); padding: 14px 16px; margin: 4px 0 18px; font-size: 16px;
}
.vam-total strong { font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vam-consent { margin: 0 0 14px; }
.vam .vam-submit,
.vam .vam-button {
	display: inline-block; margin: 8px 0 0; padding: 14px 24px; min-height: 50px;
	font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; text-decoration: none; text-align: center;
	color: #fff; background: var(--vam-action); border: 0; border-radius: var(--vam-radius-sm); cursor: pointer;
}
.vam .vam-submit:hover, .vam .vam-button:hover { background: var(--vam-action-hover); color: #fff; }
.vam .vam-submit[disabled] { opacity: 0.7; cursor: progress; }
.vam-pay-note { max-width: 56ch; }
@container vam (max-width: 560px) { .vam .vam-submit { width: 100%; } }

/* Messages de fin */
.vam-done { max-width: 640px; }
.vam .vam-done-title { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.vam-done-card { margin-top: 28px; max-width: 420px; }

/* ===================================================================== */
/* Page d'un avis (typographique, sans image de remplacement)             */
/* ===================================================================== */
.vam-single { max-width: 940px; }
.vam .vam-kicker { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vam-muted); }
.vam .vam-head-dates { margin: 6px 0 0; font-size: 20px; line-height: 1.4; color: #3d4349; font-variant-numeric: tabular-nums; }
.vam-rule { display: block; width: 56px; height: 2px; background: var(--vam-ink); margin: 24px 0 32px; }

.vam-cols { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "side main"; gap: 48px; align-items: start; }
.vam-side { grid-area: side; position: sticky; top: 96px; font-size: 14.5px; }
.vam-main { grid-area: main; min-width: 0; }
@container vam (max-width: 700px) {
	.vam-cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: 28px; }
	.vam-side { position: static; padding-top: 24px; border-top: 1px solid var(--vam-line); }
}
.vam-side-photo { margin: 0 0 18px; }
.vam-side-photo img { display: block; width: 100%; max-width: 200px; height: auto; border-radius: var(--vam-radius-sm); }
.vam .vam-facts { margin: 0 0 18px; }
.vam .vam-facts dt { margin: 14px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vam-muted); }
.vam .vam-facts dt:first-child { margin-top: 0; }
.vam .vam-facts dd { margin: 3px 0 0; line-height: 1.5; }
.vam .vam-side-btn { display: block; width: 100%; text-align: center; margin: 0 0 8px; padding: 12px 14px; min-height: 0; font-size: 15px; }
.vam .vam-button-ghost {
	color: var(--vam-ink); background: #fff; border: 1px solid var(--vam-line); border-radius: var(--vam-radius-sm);
	font-weight: 600; text-decoration: none;
}
.vam .vam-button-ghost:hover { background: var(--vam-surface); color: var(--vam-ink); }
.vam .vam-button-ghost:focus-visible { outline: 3px solid var(--vam-focus); outline-offset: 1px; }
.vam .vam-side-share { margin: 14px 0 0; font-size: 13.5px; color: var(--vam-muted); line-height: 1.7; }
.vam .vam-side-share a, .vam .vam-linklike { color: var(--vam-muted); text-decoration: underline; text-underline-offset: 2px; }
.vam .vam-linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.vam-notice {
	background: #f7f7f8; border: 1px solid #ececee; border-radius: var(--vam-radius);
	padding: 44px 40px 36px;
}
@container vam (max-width: 560px) { .vam-notice { padding: 32px 20px 26px; } }
.vam-notice-body { font-size: 17.5px; line-height: 1.85; text-align: center; }
.vam-notice-body p { margin: 0 0 1.1em; }
.vam-notice-body .vam-n-loc { display: none; }
.vam-notice-body .vam-n-quote { font-family: inherit !important; font-size: 1.22em; line-height: 1.55; font-weight: 300; color: #3a3f44; margin-bottom: 1.4em; }
.vam-notice-body .vam-n-quote em { font-style: italic; font-family: inherit; }
.vam-notice-body .vam-n-name { font-size: 1.35em; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin: 1.2em 0 !important; }
.vam-notice-body .vam-n-name strong { font-weight: 700; }
.vam-notice-body .vam-n-mention { font-size: 0.82em; color: var(--vam-muted); }
.vam-notice-org { margin-top: 16px; }
.vam-notice-org .vam-org-logo { justify-content: center; }
.vam-notice-org .vam-notice-body { font-size: 16.5px; }
.vam-foot { margin-top: 36px; font-size: 15px; }
.vam-foot p { margin: 0 0 10px; }
.vam-back a, .vam-org-cta a { color: var(--vam-ink); font-weight: 600; }
.vam-org-cta { color: var(--vam-muted); }

/* Condoléances (formulaire de commentaire du thème) */
.comment-form-vam-candle label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.comment-form-vam-candle input { width: 18px; height: 18px; margin: 0; }
.vam-candle { display: inline-flex; vertical-align: -4px; margin-right: 8px; }
.vam-candle-icon { color: #c9c1b0; flex: none; }

/* ===================================================================== */
/* Liste des avis                                                         */
/* ===================================================================== */
.vam-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 12px; padding: 0 0 16px; border-bottom: 2px solid var(--vam-ink); }
.vam-filter-field { display: flex; flex-direction: column; gap: 5px; }
.vam-filter-q { flex: 1 1 220px; }
.vam .vam-filter label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; color: var(--vam-muted); }
.vam .vam-filter input[type="search"], .vam .vam-filter select {
	min-height: 44px; padding: 9px 12px; font: inherit; font-size: 16px; color: var(--vam-ink);
	background: #fff; border: 1px solid var(--vam-line); border-radius: var(--vam-radius-sm); width: 100%; margin: 0;
}
.vam .vam-filter input:focus, .vam .vam-filter select:focus { outline: 3px solid var(--vam-focus); outline-offset: 1px; }
.vam .vam-filter .vam-button { margin: 0; min-height: 44px; padding: 10px 18px; }
.vam-reset { margin-left: 10px; color: var(--vam-muted); font-size: 14px; }
.vam-cta { margin: 0 0 8px; color: var(--vam-muted); font-size: 14.5px; }
.vam-cta a { color: var(--vam-ink); font-weight: 600; }

.vam ul.vam-rows { list-style: none; margin: 0; padding: 0; }
.vam ul.vam-rows li { margin: 0; padding: 0; border-bottom: 1px solid var(--vam-line); }
.vam ul.vam-rows li::before { content: none; }
.vam-item { display: flex; align-items: center; gap: 20px; padding: 16px 0; color: var(--vam-ink); text-decoration: none; }
.vam-cal { flex: none; width: 64px; padding: 7px 0; border: 1px solid var(--vam-line); border-radius: 12px; text-align: center; line-height: 1.1; }
.vam-cal b { display: block; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vam-cal span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vam-muted); }
.vam-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vam-item-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.vam-item-sub { font-size: 14.5px; color: var(--vam-muted); margin-top: 2px; }
.vam-tag { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 1px 9px; border: 1px solid var(--vam-line); border-radius: 999px; font-size: 12px; font-weight: 400; color: #555; letter-spacing: 0; }
.vam-item-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 13.5px; color: var(--vam-muted); line-height: 1.6; }
.vam-item-meta b { color: var(--vam-ink); font-weight: 600; }
.vam-item-photo { flex: none; width: 52px; height: 64px; border-radius: 8px; overflow: hidden; }
.vam-item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vam-item:hover .vam-item-name { text-decoration: underline; text-underline-offset: 3px; }
.vam-item:focus-visible { outline: 3px solid var(--vam-focus); outline-offset: 2px; border-radius: 6px; }
@container vam (max-width: 560px) {
	.vam-item { gap: 14px; }
	.vam-cal { width: 54px; }
	.vam-cal b { font-size: 20px; }
	.vam-item-name { font-size: 17px; }
	.vam-item-meta { display: none; }
	.vam-tag { display: none; }
}
.vam-pages { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 36px 0 8px; font-size: 15px; }
.vam-pages a { color: var(--vam-ink); font-weight: 600; padding: 8px 16px; border: 1px solid var(--vam-line); border-radius: 999px; text-decoration: none; }
.vam-pages a:hover { background: var(--vam-surface); }
.vam-pages span { color: var(--vam-muted); }
.vam-empty { color: var(--vam-muted); padding: 30px 0; }

/* Derniers avis (accueil, barre latérale) : texte seul */
.vam-latest ul { list-style: none; margin: 0; padding: 0; }
.vam-latest li { margin: 0; padding: 0; border-bottom: 1px solid var(--vam-line); }
.vam-latest li:last-child { border-bottom: 0; }
.vam-latest-item { display: flex; flex-direction: column; padding: 10px 0; text-decoration: none; color: var(--vam-ink); }
.vam-latest-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.vam-latest-meta { font-size: 13.5px; color: var(--vam-muted); }
.vam-latest-item:hover .vam-latest-name { text-decoration: underline; text-underline-offset: 3px; }
.vam-latest-all { margin: 12px 0 0; font-size: 14px; }
.vam-latest-all a { color: var(--vam-ink); font-weight: 600; }

/* ===================================================================== */
/* Avis de sociétés                                                       */
/* ===================================================================== */
.vam [hidden] { display: none !important; }
.vam-radio-legend { display: block; font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.vam-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.vam .vam-radio {
	display: flex; gap: 10px; align-items: center; margin: 0; padding: 13px 14px;
	border: 1px solid var(--vam-field); border-radius: var(--vam-radius-sm); background: #fff; cursor: pointer; font-weight: 400; font-size: 15px;
}
.vam .vam-radio input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--vam-action); }
.vam .vam-radio:has(input:checked) { border-color: var(--vam-ink); box-shadow: inset 0 0 0 1px var(--vam-ink); }
.vam .vam-radio:has(input:focus-visible) { outline: 3px solid var(--vam-focus); outline-offset: 1px; }

.vam .vam-parent > label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.vam .vam-parent input[type="search"] {
	display: block; width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px;
	border: 1px solid var(--vam-field); border-radius: var(--vam-radius-sm); background: #fff; color: var(--vam-ink); margin: 0;
}
.vam .vam-parent input[type="search"]:focus { outline: 3px solid var(--vam-focus); outline-offset: 1px; }
.vam ul.vam-parent-results { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--vam-line); border-radius: var(--vam-radius-sm); background: #fff; }
.vam ul.vam-parent-results li { margin: 0; padding: 0; border-top: 1px solid var(--vam-line); }
.vam ul.vam-parent-results li:first-child { border-top: 0; }
.vam ul.vam-parent-results button { display: block; width: 100%; text-align: left; padding: 11px 12px; background: none; border: 0; font: inherit; font-size: 15px; color: var(--vam-ink); cursor: pointer; }
.vam ul.vam-parent-results button:hover, .vam ul.vam-parent-results button:focus-visible { background: var(--vam-surface); outline: none; }
.vam-parent-none { padding: 11px 12px !important; color: var(--vam-muted); font-size: 14px; }
.vam-parent-chosen { padding: 12px 14px; background: var(--vam-surface); border-left: 3px solid var(--vam-ink); }
.vam .vam-parent-chosen p { margin: 0; }
.vam-parent-label { font-size: 13px; color: var(--vam-muted); }
.vam .vam-parent-name { font-weight: 600; margin-bottom: 4px; }

.vam-org-logo { margin: 0 0 20px; display: flex; justify-content: center; }
.vam-org-logo img { display: block; max-height: 72px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.vam-card-org { background: #fff; }
.vam-card-org .vam-card-inner { min-height: 0; }
.vam-n-org { font-size: 1.1em; }
.vam-n-org strong { font-weight: 600; }

.vam-others { margin: 32px 0 0; }
.vam .vam-others-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vam-muted); margin: 0 0 12px; }
.vam-others .vam-card { margin: 0 0 16px; }
.vam-others .vam-card-inner { font-size: 16px; padding: 30px 26px 24px; }
.vam-org-cta { font-size: 15px; color: var(--vam-muted); }
.vam .vam-button-icon { display: inline-flex; align-items: center; gap: 9px; }
.vam .vam-button-icon svg { width: 18px; height: 18px; }
