/* JS – Contact — v1.1.1
 * Architecture anti-débordement js-devis. Boutons préfixés .js-c (0,2,0) —
 * le reset .js-c button ne doit jamais les battre (leçon js-devis v1.1.0).
 * Garde [hidden] AUTONOME sur la popup (elle voyage en fin de body).
 */

.js-c {
	--js-pad-x: 0px;
	--js-c-gap: 44px;
	--js-c-accent: #4a7326;
	--js-c-accent2: #3e6d2c;
	--js-c-soft: #eaf2df;
	--js-c-title: #000101;
	--js-c-text: #5b6a56;
	--js-c-border: #d6e2cb;
	--js-c-error: #c2410c;
	--js-c-btn-bg: #4a7326;
	--js-c-btn-bg2: #3e6d2c;
	--js-c-btn-bg-h: #3e6d2c;
	--js-c-btn-bg2-h: #2f5421;
	--js-c-btn-txt: #ffffff;
	--js-c-btn-txt-h: #ffffff;
	--js-c-btn-radius: 12px;

	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: var(--js-c-gap);
	align-items: start;
	max-width: 100%;
	overflow-x: clip;
	padding-left: var(--js-pad-x);
	padding-right: var(--js-pad-x);
	font-family: 'Noto Sans', sans-serif;
	color: var(--js-c-text);
}
.js-c--form-only, .js-c--panel-only { grid-template-columns: minmax(0, 1fr); }
.js-c :where(h1, h2, h3, h4, h5, h6, p, ul, li, label) {
	margin: 0; padding: 0; letter-spacing: normal; text-transform: none; clear: none;
}
.js-c :where(*) { min-width: 0; }
.js-c [hidden] { display: none !important; }
.js-c :where(p, span, label, div) { overflow-wrap: anywhere; }
.js-c button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 0; }
/* NB : reset (0,1,1) — toute règle de bouton ci-dessous est préfixée .js-c. */

/* Ordres. */
.js-c--panel-left  .js-c__col--panel { order: 1; }
.js-c--panel-left  .js-c__col--form  { order: 2; }
.js-c--panel-right .js-c__col--panel { order: 2; }
.js-c--panel-right .js-c__col--form  { order: 1; }

/* Pot de miel — motif standard. */
.js-c__hp {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Panneau de coordonnées ---------- */
.js-c__panel {
	position: relative;
	border-radius: 22px;
	padding: 34px 30px 30px;
	overflow: hidden;
}
.js-c--p-nuit .js-c__panel {
	background: linear-gradient(160deg, #000101, #0d1a0b);
	color: #c3cbbd;
}
.js-c--p-foret .js-c__panel {
	background: linear-gradient(var(--js-c-foret-angle, 160deg), var(--js-c-foret1, #4a7326), var(--js-c-foret2, #2f5421));
	color: #eaf2df;
}
.js-c--p-foret .js-c__panel-branch { color: rgba(255, 255, 255, .55); }
.js-c--p-foret .js-c__item + .js-c__item { border-top-color: rgba(255, 255, 255, .16); }
.js-c--p-foret .js-c__hours-dots { border-bottom-color: rgba(255, 255, 255, .3); }
.js-c--p-foret .js-c__item-label { color: #eaf2df; }
.js-c--p-foret .js-c__hours-val, .js-c--p-foret .js-c__panel-intro { color: #f1f5ec; }
.js-c--p-foret .js-c__item-icon { background: rgba(255, 255, 255, .14); color: #ffffff; }
.js-c--p-foret .js-c__gmb { background: rgba(0, 1, 1, .28); color: #ffffff; }
.js-c--p-foret .js-c__gmb:hover { background: #000101; color: #ffffff; }
.js-c--p-sauge .js-c__panel { background: #f1f5ec; }
.js-c--p-clair .js-c__panel { background: #ffffff; border: 1px solid #e3e9dc; box-shadow: 0 6px 22px rgba(0,1,1, .07); }

.js-c__panel-branch {
	position: absolute;
	top: 20px;
	right: 22px;
	color: rgba(159,211,109, .8);
	display: inline-flex;
}
.js-c__panel-branch .js-c__branch { width: 46px; height: 25px; }
.js-c--p-sauge .js-c__panel-branch, .js-c--p-clair .js-c__panel-branch { color: var(--js-c-accent); }

.js-c .js-c__panel-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 10px;
	padding-right: 54px; /* la branche décorative */
}
.js-c--p-sauge .js-c__panel-title, .js-c--p-clair .js-c__panel-title { color: var(--js-c-title); }
.js-c .js-c__panel-intro {
	font-size: 14.5px;
	line-height: 1.7;
	margin-bottom: 22px;
}
.js-c--p-sauge .js-c__panel-intro, .js-c--p-clair .js-c__panel-intro { color: var(--js-c-text); }

/* Lignes de coordonnées. */
.js-c__items { list-style: none; }
.js-c__item { display: flex; align-items: flex-start; padding: 11px 0; }
.js-c__item + .js-c__item { border-top: 1px solid rgba(255, 255, 255, .09); }
.js-c--p-sauge .js-c__item + .js-c__item, .js-c--p-clair .js-c__item + .js-c__item { border-top-color: rgba(0,1,1, .08); }
.js-c__item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(123,176,66, .16);
	color: #c6ea9e;
	flex: 0 0 auto;
	margin-right: 14px !important;
	margin-top: 2px;
}
.js-c--p-sauge .js-c__item-icon, .js-c--p-clair .js-c__item-icon { background: var(--js-c-soft); color: var(--js-c-accent2); }
.js-c__item-icon svg { width: 17px; height: 17px; }
.js-c__item-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.js-c__item-label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #8a9585;
	margin-bottom: 2px;
}
.js-c--p-sauge .js-c__item-label, .js-c--p-clair .js-c__item-label { color: var(--js-c-accent2); }
.js-c__item-value { font-size: 15px; line-height: 1.55; color: #ffffff; font-weight: 600; }
.js-c--p-sauge .js-c__item-value, .js-c--p-clair .js-c__item-value { color: var(--js-c-title); }
.js-c__item-value a { color: inherit; text-decoration: none; }
.js-c__item-value a:hover, .js-c__item-value a:focus-visible { color: #c6ea9e; text-decoration: underline; text-underline-offset: 3px; }
.js-c--p-sauge .js-c__item-value a:hover, .js-c--p-clair .js-c__item-value a:hover { color: var(--js-c-accent2); }

/* Horaires : jour ..... heures. */
.js-c__hours { display: flex; flex-direction: column; }
.js-c__hours-row { display: flex; align-items: baseline; flex-wrap: wrap; padding: 3px 0; }
.js-c__hours-day { font-size: 14px; color: #ffffff; font-weight: 600; flex: 0 1 auto; min-width: 0; }
.js-c--p-sauge .js-c__hours-day, .js-c--p-clair .js-c__hours-day { color: var(--js-c-title); }
.js-c__hours-dots {
	flex: 1 1 auto;
	min-width: 14px;
	margin: 0 8px !important;
	border-bottom: 2px dotted rgba(255, 255, 255, .22);
	transform: translateY(-3px);
}
.js-c--p-sauge .js-c__hours-dots, .js-c--p-clair .js-c__hours-dots { border-bottom-color: rgba(0,1,1, .18); }
.js-c__hours-val { font-size: 14px; color: #d6e2cb; flex: 0 1 auto; min-width: 0; }
.js-c--p-sauge .js-c__hours-val, .js-c--p-clair .js-c__hours-val { color: var(--js-c-text); }

/* Fiche Google. */
.js-c__gmb {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin-top: 16px;
	padding: 11px 20px;
	border-radius: 999px;
	background: rgba(159,211,109, .14);
	color: #c6ea9e;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .25s ease, color .25s ease;
}
.js-c__gmb:hover, .js-c__gmb:focus-visible { background: #9fd36d; color: #0d1a0b; }
.js-c--p-sauge .js-c__gmb, .js-c--p-clair .js-c__gmb { background: #eaf2df; color: #3e6d2c; }
.js-c--p-sauge .js-c__gmb:hover, .js-c--p-clair .js-c__gmb:hover { background: #4a7326; color: #0d1a0b; }
.js-c__gmb-icon { display: inline-flex; margin-right: 8px !important; flex: 0 0 auto; }
.js-c__gmb-icon svg { width: 15px; height: 15px; }

/* Carte. */
.js-c__map {
	margin-top: 20px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(0,1,1, .25);
}
.js-c__map iframe {
	display: block;
	width: 100%;
	height: 220px;
	border: 0;
}

/* ---------- Formulaire ---------- */
.js-c .js-c__form-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--js-c-title);
	margin-bottom: 6px;
}
.js-c .js-c__form-title::after {
	content: '';
	display: block;
	width: 48px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--js-c-accent), #9fd36d);
	margin-top: 9px;
}
.js-c__form { margin-top: 18px; }
.js-c__field { margin-bottom: 16px; }
.js-c .js-c__label {
	display: block;
	color: var(--js-c-title);
	font-size: 14.5px;
	font-weight: 600;
	margin-bottom: 7px;
}
.js-c .js-c__label em { color: var(--js-c-error); font-style: normal; }
.js-c .js-c__input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 15px;
	border: 2px solid var(--js-c-border);
	border-radius: 12px;
	background: #ffffff;
	color: var(--js-c-title);
	font-family: inherit;
	font-size: 15.5px;
	line-height: 1.5;
	transition: border-color .22s ease, box-shadow .22s ease;
}
.js-c .js-c__input:focus {
	outline: none;
	border-color: var(--js-c-accent);
	box-shadow: 0 0 0 3px rgba(74,115,38, .15);
}
.js-c .js-c__textarea { resize: vertical; min-height: 130px; }
.js-c__grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

/* Menus déroulants — chevron dessiné. */
.js-c__select-wrap { position: relative; display: block; }
.js-c .js-c__select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 42px;
	cursor: pointer;
}
.js-c .js-c__select:invalid { color: #8a9585; }
.js-c__select-wrap::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 16px;
	width: 10px;
	height: 10px;
	border-right: 2.5px solid var(--js-c-accent2);
	border-bottom: 2.5px solid var(--js-c-accent2);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

@media (max-width: 640px) {
	.js-c__grid2 { grid-template-columns: minmax(0, 1fr); }
	.js-c .js-c__input { font-size: 16px; } /* zoom iOS */
}

/* Erreurs — seulement après tentative. */
.js-c__form.is-attempted .js-c__input:invalid { border-color: var(--js-c-error); }
.js-c .js-c__error {
	color: var(--js-c-error);
	font-size: 14px;
	font-weight: 600;
	margin: 4px 0 12px;
}

/* RGPD. */
.js-c__gdpr { display: flex; align-items: flex-start; cursor: pointer; margin: 4px 0 18px; }
.js-c__gdpr input {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%);
}
.js-c__gdpr-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 2px solid var(--js-c-border);
	border-radius: 7px;
	background: #ffffff;
	color: #ffffff;
	flex: 0 0 auto;
	margin-right: 10px !important;
	margin-top: 2px;
	transition: background .2s ease, border-color .2s ease;
}
.js-c__gdpr-box svg { width: 13px; height: 13px; opacity: 0; transition: opacity .15s ease; }
.js-c__gdpr input:checked + .js-c__gdpr-box { background: var(--js-c-accent); border-color: var(--js-c-accent); }
.js-c__gdpr input:checked + .js-c__gdpr-box svg { opacity: 1; }
.js-c__gdpr input:focus-visible + .js-c__gdpr-box { outline: 2px solid var(--js-c-title); outline-offset: 2px; }
.js-c__gdpr-text { font-size: 13.5px; line-height: 1.6; }
.js-c__gdpr-text a { color: var(--js-c-accent2); font-weight: 600; }
.js-c__gdpr-text em { color: var(--js-c-error); font-style: normal; }

/* Bouton d'envoi — (0,2,0), jamais battu par le reset. */
.js-c .js-c__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 12px 24px;
	height: auto;
	min-height: 0;
	line-height: 1.2;
	text-transform: none;
	border-radius: var(--js-c-btn-radius);
	background: linear-gradient(135deg, var(--js-c-btn-bg), var(--js-c-btn-bg2));
	color: var(--js-c-btn-txt);
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
	box-shadow: 0 8px 20px rgba(62,109,44, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
	transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.js-c .js-c__submit:hover {
	background: linear-gradient(135deg, var(--js-c-btn-bg-h), var(--js-c-btn-bg2-h));
	color: var(--js-c-btn-txt-h);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(62,109,44, .34), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.js-c .js-c__submit:focus-visible { outline: 2px solid var(--js-c-title); outline-offset: 3px; }
.js-c .js-c__submit[disabled] { opacity: .6; transform: none; cursor: default; }
.js-c__submit-label { overflow-wrap: break-word; }
.js-c__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #ffffff;
	border-radius: 999px;
	margin-left: 10px !important;
	flex: 0 0 auto;
	animation: js-c-spin .8s linear infinite;
}
@keyframes js-c-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
	.js-c .js-c__submit { width: 100%; }
}

/* ---------- Popup (fin de body — garde [hidden] AUTONOME). ---------- */
.js-c__modal[hidden] { display: none !important; }
.js-c__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.js-c__modal-veil {
	position: absolute;
	inset: 0;
	background: rgba(0,1,1, .55);
	backdrop-filter: blur(3px);
}
.js-c__modal-card {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	padding: 34px 28px 28px;
	max-width: 430px;
	width: 100%;
	text-align: center;
	box-shadow: 0 30px 70px rgba(0,1,1, .35);
	animation: js-c-pop .45s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes js-c-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.js-c__modal-brand { position: relative; display: inline-flex; margin-bottom: 16px; }
.js-c__modal-logo {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: #ffffff;
	box-shadow: 0 0 0 5px #ffffff, 0 0 0 6px rgba(0,1,1, .08), 0 12px 28px rgba(0,1,1, .18);
}
.js-c__modal-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--js-c-accent, #4a7326);
	width: 46px;
	height: 46px;
	position: absolute;
	right: -8px;
	bottom: -8px;
	background: #ffffff;
	border-radius: 50%;
	padding: 5px;
	box-shadow: 0 6px 16px rgba(0,1,1, .22);
}
.js-c__modal-brand--nologo .js-c__modal-check {
	position: static;
	width: 74px;
	height: 74px;
	background: transparent;
	box-shadow: none;
	padding: 0;
}
.js-c__modal-check svg { width: 100%; height: 100%; }
.js-c__mc-circle {
	stroke-dasharray: 145;
	stroke-dashoffset: 145;
	animation: js-c-draw .7s ease-out .1s forwards;
}
.js-c__mc-tick {
	stroke-dasharray: 34;
	stroke-dashoffset: 34;
	animation: js-c-draw .45s ease-out .65s forwards;
}
@keyframes js-c-draw { to { stroke-dashoffset: 0; } }
.js-c__modal-title {
	margin: 0 0 8px;
	color: var(--js-c-title, #000101);
	font-family: 'Montserrat', sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: normal;
}
.js-c__modal-text {
	margin: 0 0 20px;
	color: var(--js-c-text, #5b6a56);
	font-family: 'Noto Sans', sans-serif;
	font-size: 15px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}
.js-c__modal-close {
	display: inline-flex;
	padding: 12px 30px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--js-c-accent, #4a7326), var(--js-c-accent2, #3e6d2c));
	color: #ffffff;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	border: 0;
	cursor: pointer;
}
.js-c__modal-close:focus-visible { outline: 2px solid #000101; outline-offset: 3px; }

/* ---------- Empilement ---------- */
@media (max-width: 1024px) {
	.js-c { grid-template-columns: minmax(0, 1fr); }
	.js-c--stack-form .js-c__col--form  { order: 1; }
	.js-c--stack-form .js-c__col--panel { order: 2; }
	.js-c--stack-panel .js-c__col--panel { order: 1; }
	.js-c--stack-panel .js-c__col--form  { order: 2; }
}
@media (max-width: 767px) {
	.js-c { --js-c-gap: 30px; }
	.js-c__panel { padding: 26px 20px 24px; }
	.js-c .js-c__panel-title, .js-c .js-c__form-title { font-size: 21px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	.js-c *, .js-c *::before, .js-c *::after,
	.js-c__modal, .js-c__modal * { transition: none !important; animation: none !important; }
	.js-c__mc-circle, .js-c__mc-tick { stroke-dashoffset: 0; }
}
