/* Concours « Nommez un mustang » — /nommez-un-mustang/ */

.nm_body {
	--nm-ocre: #bc6c25;
	--nm-ocre-fonce: #9b5520;
	--nm-encre: rgba(0,0,0,.86);
	--nm-carte: rgba(255,255,255,.15);
	--nm-creme: #fdf6ec;
	--nm-brun: #3d2a1a;
	--nm-vert: #4a7c59;
	--nm-rouge: #a3262a;
	margin: 0;
	width: 100%;
	overflow-x: hidden;
	background-color: var(--nm-ocre);
	color: var(--nm-encre);
	font-family: "Bitter", Georgia, serif;
	font-weight: 300;
}
.nm_logo_lien:link, .nm_logo_lien:visited { color: inherit; }
.nm_menu { text-align: center; }

.nm {
	width: min(1120px, calc(100% - 40px));
	margin: 30px auto 80px;
}
.nm p { margin: 0 0 .8em; }
.nm p:last-child { margin-bottom: 0; }

.nm_h2 {
	font-family: "Bitter", Georgia, serif;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
	margin: 0 0 20px;
	color: inherit;
}
.nm_h2--grand {
	font-family: Mjolnir, Georgia, serif;
	text-transform: uppercase;
	font-weight: 400;
	text-align: center;
	font-size: clamp(28px, 4.4vw, 46px);
	letter-spacing: 2px;
	margin: 0 0 34px;
}

/* ---------- Ouverture ---------- */
.nm_hero {
	text-align: center;
	padding: 10px 0 50px;
}
.nm_kicker {
	display: inline-block;
	padding: 6px 16px 7px;
	border-radius: 999px;
	background: rgba(0,0,0,.82);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	margin-bottom: 26px;
}
.nm_h1 {
	font-family: Mjolnir, Georgia, serif;
	text-transform: uppercase;
	font-weight: 400;
	font-size: clamp(34px, 6vw, 66px);
	line-height: 1.12;
	letter-spacing: 3px;
	margin: 0 auto 30px;
	max-width: 960px;
	text-wrap: balance;
}
.nm_intro {
	max-width: 640px;
	margin: 0 auto;
	font-size: 19px;
	line-height: 1.7;
	font-weight: 400;
}
.nm_echeance {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	padding: 10px 20px 10px 16px;
	border-radius: 999px;
	background: rgba(255,255,255,.22);
	font-weight: 500;
	font-size: 16px;
}
.nm_echeance .material-symbols-outlined { font-size: 22px; }
.nm_echeance--ferme { background: rgba(0,0,0,.8); color: #fff; }

/* ---------- Critères et prix ---------- */
.nm_regles {
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	gap: 24px;
	margin-bottom: 90px;
	align-items: stretch;
}
.nm_criteres, .nm_prix {
	border-radius: 30px;
	padding: 38px 40px;
}
.nm_criteres {
	background: var(--nm-carte);
	border-top: 1px solid rgba(255,255,255,.18);
}
.nm_criteres_liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.nm_criteres_liste li {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 18px;
	align-items: start;
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
}
.nm_critere_icone {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(0,0,0,.8);
	color: #f7d2a8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}
.nm_prix {
	background: rgba(0,0,0,.8);
	color: rgba(255,255,255,.94);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 300;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.nm_prix .nm_h2 { color: #fff; }
.nm_prix_icone {
	font-size: 40px;
	color: #f2b77a;
	margin-bottom: 14px;
}

/* ---------- Vignettes ---------- */
.nm_galerie {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 20px;
	margin: 0 0 20px;
}
.nm_vignette,
.nm_vignette:link,
.nm_vignette:visited {
	position: relative;
	width: 104px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--nm-encre);
	transition: transform .2s ease;
}
.nm_vignette:hover { transform: translateY(-3px); color: #000; }
.nm_vignette_img {
	width: 86px;
	height: 86px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid rgba(255,255,255,.4);
	box-shadow: 0 6px 16px rgba(0,0,0,.18);
	transition: border-color .2s ease;
}
.nm_vignette:hover .nm_vignette_img { border-color: #fff; }
.nm_vignette_img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nm_vignette_titre {
	margin-top: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}
.nm_vignette_nom {
	font-size: 13px;
	font-style: italic;
	line-height: 1.3;
	min-height: 17px;
	opacity: .85;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}
.nm_vignette_coche {
	position: absolute;
	top: 0;
	right: 4px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--nm-vert);
	color: #fff;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
	transform: scale(0);
	transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nm_vignette.is-propose .nm_vignette_coche { transform: scale(1); }
.nm_vignette.is-propose .nm_vignette_img { border-color: #fff; }

/* ---------- Fiche d'un cheval ---------- */
.nm_cheval {
	display: grid;
	margin-top: 44px;
	border-radius: 32px;
	overflow: hidden;
	background: var(--nm-carte);
	border-top: 1px solid rgba(255,255,255,.18);
	box-shadow: 0 10px 30px rgba(0,0,0,.08);
	scroll-margin-top: 24px;
}
.nm_cheval--portrait {
	grid-template-columns: minmax(280px, 400px) 1fr;
}
.nm_cheval--portrait.nm_cheval--inverse {
	grid-template-columns: 1fr minmax(280px, 400px);
}
.nm_cheval--portrait.nm_cheval--inverse .nm_media { order: 2; }

.nm_media {
	position: relative;
	background: rgba(0,0,0,.18);
	overflow: hidden;
}
.nm_cheval--portrait .nm_media { min-height: 640px; }
.nm_cheval--paysage .nm_media { aspect-ratio: 16 / 9; max-height: 620px; width: 100%; }
.nm_media video,
.nm_media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nm_media_bouton {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease;
}
.nm_media_bouton:hover { background: rgba(0,0,0,.72); }
.nm_media_bouton:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.nm_fiche {
	padding: 42px 46px 44px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}
.nm_cheval--paysage .nm_fiche {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"tete tete"
		"textes proposition"
		"signe proposition";
	gap: 24px 40px;
	align-items: start;
}
.nm_cheval--paysage.nm_cheval--sans-proposition .nm_fiche {
	grid-template-areas:
		"tete tete"
		"textes signe";
}
.nm_cheval--paysage .nm_fiche_tete { grid-area: tete; }
.nm_cheval--paysage .nm_textes { grid-area: textes; }
.nm_cheval--paysage .nm_signe { grid-area: signe; }
.nm_cheval--paysage .nm_proposition { grid-area: proposition; }

.nm_details {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .7;
	margin-bottom: 6px;
}
.nm_titre {
	font-family: "Bitter", Georgia, serif;
	font-weight: 700;
	font-size: clamp(32px, 3.6vw, 44px);
	line-height: 1.1;
	letter-spacing: .01em;
	margin: 0;
}
.nm_nom_actuel {
	display: inline-block;
	margin-top: 12px;
	padding: 4px 14px 5px;
	border-radius: 999px;
	background: rgba(0,0,0,.8);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
}
.nm_textes {
	font-size: 17px;
	line-height: 1.7;
	font-weight: 400;
}
.nm_signe {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 12px;
	padding: 16px 20px;
	border-radius: 18px;
	background: rgba(255,255,255,.2);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
}
.nm_signe .material-symbols-outlined { font-size: 26px; opacity: .8; }
.nm_signe strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .75;
	margin-bottom: 2px;
}

/* ---------- Champ de proposition ---------- */
.nm_proposition {
	background: var(--nm-creme);
	border-radius: 24px;
	padding: 22px 24px 24px;
	box-shadow: 0 8px 24px rgba(61,42,26,.14);
	color: var(--nm-brun);
	transition: box-shadow .25s ease;
}
.nm_proposition_tete {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 17px;
	margin-bottom: 14px;
}
.nm_proposition_tete .material-symbols-outlined { font-size: 20px; color: var(--nm-ocre); }
.nm_proposition_ok {
	margin-left: auto;
	color: var(--nm-vert) !important;
	font-size: 24px !important;
	opacity: 0;
	transform: scale(.5);
	transition: opacity .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nm_proposition.is-propose .nm_proposition_ok { opacity: 1; transform: scale(1); }
.nm_proposition.is-propose { box-shadow: 0 0 0 2px var(--nm-vert), 0 8px 24px rgba(61,42,26,.14); }

.nm_label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	margin: 0 0 6px 2px;
	color: var(--nm-brun);
}
.nm_champ + .nm_label { margin-top: 14px; }
.nm_champ {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid rgba(61,42,26,.18);
	border-radius: 14px;
	background: #fff;
	color: #22170d;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.nm_champ:focus {
	outline: none;
	border-color: var(--nm-ocre);
	box-shadow: 0 0 0 4px rgba(188,108,37,.22);
}
.nm_champ_nom {
	font-size: 21px;
	font-weight: 600;
	letter-spacing: .01em;
}
textarea.nm_champ { resize: vertical; min-height: 96px; }
.nm_champ.is-erreur { border-color: var(--nm-rouge); }
.nm_erreur {
	color: var(--nm-rouge);
	font-size: 14px;
	font-weight: 500;
	margin-top: 8px;
}
.nm_erreur:empty { display: none; }

/* ---------- Envoi ---------- */
.nm_envoi {
	margin: 80px auto 0;
	max-width: 760px;
	scroll-margin-top: 24px;
}
.nm_formulaire, .nm_merci {
	background: var(--nm-creme);
	color: var(--nm-brun);
	border-radius: 32px;
	padding: 42px 46px 40px;
	box-shadow: 0 16px 40px rgba(61,42,26,.2);
}
.nm_formulaire .nm_h2 { font-size: 28px; text-align: center; }
.nm_recap {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nm_recap li a,
.nm_recap li a:link,
.nm_recap li a:visited {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 8px 14px 8px 8px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(61,42,26,.1);
	color: var(--nm-brun);
	transition: border-color .15s ease;
}
.nm_recap li a:hover { border-color: var(--nm-ocre); }
.nm_recap img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.nm_recap_cheval { font-size: 13px; opacity: .7; display: block; }
.nm_recap_nom { font-size: 19px; font-weight: 600; line-height: 1.25; }
.nm_recap .material-symbols-outlined { font-size: 20px; opacity: .55; }
.nm_recap_vide {
	text-align: center;
	font-style: italic;
	opacity: .75;
	margin: 0 0 26px !important;
}
.nm_rappel {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 16px !important;
	padding-top: 22px;
	border-top: 1px solid rgba(61,42,26,.14);
}
.nm_coordonnees {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.nm_piege {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.nm_erreur_globale { margin-top: 16px; text-align: center; }
.nm_bouton,
.nm_bouton:link,
.nm_bouton:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	background: var(--nm-brun);
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	padding: 16px 30px;
	cursor: pointer;
	transition: background-color .2s ease, transform .15s ease;
}
.nm_bouton:hover { background: #000; color: #fff; }
.nm_bouton:active { transform: scale(.98); }
.nm_bouton:disabled { opacity: .6; cursor: wait; }
.nm_bouton:focus-visible { outline: 3px solid var(--nm-ocre); outline-offset: 3px; }
.nm_formulaire .nm_bouton { display: flex; width: 100%; margin-top: 24px; }
.nm_fin {
	text-align: center;
	font-style: italic;
	font-size: 17px;
	margin-top: 22px !important;
	opacity: .85;
}
.nm_merci { text-align: center; font-size: 18px; }
.nm_merci:focus { outline: none; }
.nm_merci .nm_h2 { font-size: 30px; margin-bottom: 10px; }
.nm_merci_icone { font-size: 52px; color: var(--nm-ocre); margin-bottom: 8px; }

/* ---------- Barre de progression ---------- */
.nm_barre {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 8px 8px 22px;
	border-radius: 999px;
	background: rgba(38,24,12,.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0,0,0,.3);
	transform: translate(-50%, 150%);
	opacity: 0;
	transition: transform .35s ease, opacity .35s ease;
	white-space: nowrap;
}
.nm_barre.is-visible { transform: translate(-50%, 0); opacity: 1; }
.nm_barre.is-visible.is-saisie { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }
.nm_barre_points { display: flex; gap: 6px; }
.nm_barre_point {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,.55);
	transition: background-color .2s ease, border-color .2s ease;
}
.nm_barre_point.is-propose { background: #f2b77a; border-color: #f2b77a; }
.nm_barre_texte { font-size: 15px; font-weight: 400; }
.nm_barre_texte strong { font-weight: 700; }
.nm_bouton--petit,
.nm_bouton--petit:link,
.nm_bouton--petit:visited {
	font-size: 15px;
	padding: 10px 20px;
	background: var(--nm-ocre);
}
.nm_bouton--petit:hover { background: var(--nm-ocre-fonce); }

/* ---------- Adaptations ---------- */
@media (max-width: 960px) {
	.nm_regles { grid-template-columns: 1fr; }
	.nm_cheval--portrait,
	.nm_cheval--portrait.nm_cheval--inverse { grid-template-columns: 1fr; }
	.nm_cheval--portrait.nm_cheval--inverse .nm_media { order: 0; }
	.nm_cheval--portrait .nm_media { min-height: 0; aspect-ratio: 4 / 5; max-height: 72vh; }
	.nm_cheval--paysage .nm_fiche,
	.nm_cheval--paysage.nm_cheval--sans-proposition .nm_fiche {
		display: flex;
		flex-direction: column;
	}
	.nm_fiche { padding: 32px 30px 34px; }
}
@media (max-width: 600px) {
	.nm { width: calc(100% - 24px); margin-top: 10px; }
	.nm_hero { padding-bottom: 36px; }
	.nm_intro { font-size: 17px; }
	.nm_criteres, .nm_prix { padding: 28px 22px; border-radius: 24px; }
	.nm_criteres_liste li { grid-template-columns: 38px 1fr; gap: 14px; font-size: 16px; }
	.nm_critere_icone { width: 38px; height: 38px; font-size: 20px; }
	.nm_regles { margin-bottom: 60px; }
	.nm_galerie {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 4px 6px 10px;
		margin: 0 -12px 10px;
		scrollbar-width: none;
	}
	.nm_galerie::-webkit-scrollbar { display: none; }
	.nm_vignette,
	.nm_vignette:link,
	.nm_vignette:visited { flex: 0 0 auto; scroll-snap-align: start; width: 86px; }
	.nm_vignette_img { width: 72px; height: 72px; }
	.nm_cheval { border-radius: 24px; margin-top: 28px; }
	.nm_fiche { padding: 26px 20px 24px; gap: 20px; }
	.nm_textes { font-size: 16px; }
	.nm_proposition { padding: 18px 16px 20px; border-radius: 20px; }
	.nm_formulaire, .nm_merci { padding: 30px 20px; border-radius: 24px; }
	.nm_coordonnees { grid-template-columns: 1fr; }
	.nm_barre { gap: 10px; padding-left: 16px; bottom: 12px; }
	.nm_barre_points { display: none; }
	.nm_barre_texte { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.nm_vignette, .nm_vignette_coche, .nm_barre, .nm_proposition_ok { transition: none; }
}
