/* =========================================================================
   MINERAL — Pages intérieures
   Présentation aujourd'hui, Contact ensuite : même feuille, pour éviter
   d'empiler un fichier CSS par gabarit.
   ====================================================================== */

/* ---------- S.01 Introduction --------------------------------------------- */

.pg-intro { padding: calc(var(--section-y) + 5rem) var(--gutter) var(--section-y); }

.pg-intro__head { max-width: 1400px; margin: 0 auto clamp(3rem, 8vh, 6rem); }
.pg-intro__head .kicker { margin-bottom: 1.75rem; }

.pg-intro__title {
	font-size: clamp(2.6rem, 6vw, 5.5rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.pg-intro__body {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(2rem, 6vw, 5.5rem);
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
}

.pg-intro__portrait { overflow: hidden; border-radius: var(--radius); }
.pg-intro__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pg-intro__text { max-width: 56ch; }
.pg-intro__text > * + * { margin-top: 1.25rem; }
.pg-intro__text p { color: var(--ink-soft); line-height: 1.65; }

.pg-lead {
	font-size: clamp(1.25rem, 1.8vw, 1.6rem);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--ink) !important;
}

/* Carte d'identité */

.pg-identity {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	max-width: 1400px;
	margin: clamp(3rem, 8vh, 6rem) auto 0;
	border-top: 1px solid var(--line);
}

.pg-identity__item { padding: 1.75rem 1.5rem 1.75rem 0; }
.pg-identity__item + .pg-identity__item { border-left: 1px solid var(--line); padding-left: 1.5rem; }

.pg-identity dt {
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-2);
	margin-bottom: 0.5rem;
}
.pg-identity dd {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

/* ---------- Manifeste ------------------------------------------------------ */

.pg-manifesto {
	padding: clamp(4rem, 12vh, 9rem) var(--gutter);
	margin: 0;
	text-align: center;
}
.pg-manifesto p {
	max-width: 22ch;
	margin: 0 auto;
	font-size: clamp(1.8rem, 4vw, 3.4rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
.pg-manifesto cite {
	display: block;
	margin-top: 2rem;
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	font-style: normal;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fg-2);
}

/* ---------- S.02 La matière ------------------------------------------------- */

.pg-matter { padding: var(--section-y) var(--gutter); }

.pg-matter__head { max-width: 1400px; margin: 0 auto clamp(3rem, 8vh, 5rem); }
.pg-matter__head .kicker { margin-bottom: 1.5rem; }
.pg-matter__head .h-lead { max-width: 24ch; }

.pg-matter__body {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
}

.pg-matter__figure { margin: 0; }
.pg-coupe { width: 100%; height: auto; color: var(--ink); }

.pg-coupe__labels text {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	fill: var(--ink);
}
.pg-coupe__labels .pg-coupe__sub {
	font-size: 10px;
	letter-spacing: 0.06em;
	fill: var(--muted);
	text-transform: none;
}
.pg-coupe__dim-label {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: 0.1em;
	fill: var(--muted);
}

.pg-matter__figure figcaption {
	margin-top: 1rem;
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: 0.12em;
	color: var(--fg-2);
}

.pg-matter__text > * + * { margin-top: 1.25rem; }
.pg-matter__text p { color: var(--ink-soft); line-height: 1.65; }

/* ---------- S.03 Engagements ------------------------------------------------- */

.pg-pledges { padding: var(--section-y) var(--gutter); }
.pg-pledges__head { max-width: 1400px; margin: 0 auto clamp(2.5rem, 6vh, 4rem); }

.pg-pledges__list { max-width: 1400px; margin: 0 auto; }

.pg-pledge {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: clamp(1rem, 3vw, 3rem);
	padding: clamp(1.75rem, 4vh, 2.75rem) 0;
	border-top: 1px solid var(--line);
}
.pg-pledge:last-child { border-bottom: 1px solid var(--line); }

.pg-pledge__num {
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: 0.14em;
	color: var(--accent);
	padding-top: 0.35rem;
}
.pg-pledge__title {
	font-size: var(--fs-h3);
	font-weight: 600;
	letter-spacing: -0.02em;
}
.pg-pledge__text {
	margin-top: 0.6rem;
	max-width: 62ch;
	color: var(--ink-soft);
	line-height: 1.6;
}

/* ---------- S.04 FAQ ---------------------------------------------------------- */

.pg-faq { padding: var(--section-y) var(--gutter); }
.pg-faq__head { max-width: 900px; margin: 0 auto clamp(2.5rem, 6vh, 4rem); }
.pg-faq__head .kicker { margin-bottom: 1.5rem; }

.pg-faq__list { max-width: 900px; margin: 0 auto; }

.pg-faq__item { border-top: 1px solid var(--line); }
.pg-faq__item:last-child { border-bottom: 1px solid var(--line); }

.pg-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.5rem 0;
	cursor: pointer;
	list-style: none;
	font-size: clamp(1.05rem, 1.5vw, 1.35rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	transition: color 0.25s var(--ease);
}
.pg-faq__item summary::-webkit-details-marker { display: none; }
.pg-faq__item summary:hover { color: var(--accent); }

/* Croix qui pivote en moins */
.pg-faq__item summary i {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
.pg-faq__item summary i::before,
.pg-faq__item summary i::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: currentColor;
	transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.pg-faq__item summary i::before { width: 18px; height: 1.5px; transform: translate(-50%, -50%); }
.pg-faq__item summary i::after  { width: 1.5px; height: 18px; transform: translate(-50%, -50%); }
.pg-faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.pg-faq__item[open] summary { color: var(--accent); }

.pg-faq__answer {
	padding-bottom: 1.75rem;
	max-width: 68ch;
	color: var(--ink-soft);
	line-height: 1.65;
	animation: pgFaqIn 0.35s var(--ease) both;
}
@keyframes pgFaqIn {
	from { opacity: 0; transform: translateY(-0.4rem); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Appel ---------------------------------------------------------------- */

.pg-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: clamp(3rem, 9vh, 6rem) var(--gutter);
}
.pg-cta p {
	font-size: clamp(1.8rem, 3.6vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}
.pg-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pg-cta .btn { border-color: var(--ink); }
.pg-cta .btn:hover { background: var(--ink); color: var(--accent); }

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

@media (max-width: 1024px) {
	.pg-intro__body,
	.pg-matter__body { grid-template-columns: 1fr; }
	.pg-intro__portrait { max-width: 460px; }
	.pg-matter__figure { order: 2; }
}

@media (max-width: 720px) {
	.pg-identity { grid-template-columns: 1fr 1fr; }
	.pg-identity__item + .pg-identity__item { border-left: 0; padding-left: 0; }
	.pg-identity__item { border-bottom: 1px solid var(--line); }
	.pg-pledge { grid-template-columns: 1fr; gap: 0.5rem; }
	.pg-pledge__num { padding-top: 0; }
	.pg-cta { flex-direction: column; align-items: flex-start; }

	/* La coupe technique devient illisible en dessous de 700 px de large :
	   on la fait défiler plutôt que de la comprimer. */
	.pg-matter__figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.pg-coupe { min-width: 660px; }
}

/* =========================================================================
   CONTACT
   ====================================================================== */

.ct { padding: calc(var(--section-y) + 5rem) var(--gutter) var(--section-y); }

.ct__head { max-width: 1400px; margin: 0 auto clamp(3rem, 8vh, 5rem); }
.ct__head .kicker { margin-bottom: 1.75rem; }

.ct__warning {
	max-width: 1400px;
	margin: 0 auto 2rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--accent);
	background: rgba(200, 80, 30, 0.06);
}

.ct__body {
	display: grid;
	grid-template-columns: 4fr 7fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
}

/* ---------- Colonne coordonnées ------------------------------------------ */

.ct__label {
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fg-2);
	margin-bottom: 0.85rem;
}

.ct__direct { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }

.ct__phone {
	display: block;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	transition: color 0.25s var(--ease);
}
.ct__phone:hover { color: var(--accent); }

.ct__mail {
	display: block;
	margin-top: 0.5rem;
	color: var(--ink-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ct__mail:hover { color: var(--accent); }

.ct__block { padding: 2rem 0; border-bottom: 1px solid var(--line); }

.ct__hours { display: flex; flex-direction: column; gap: 0.4rem; }
.ct__hours > div { display: flex; justify-content: space-between; gap: 1rem; }
.ct__hours dt { color: var(--ink-soft); }
.ct__hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.ct__note {
	margin-top: 1rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--fg-2);
	max-width: 44ch;
}

.ct__address { line-height: 1.6; white-space: pre-line; }

.ct__maps {
	display: inline-block;
	margin-top: 0.75rem;
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.ct__legal {
	border-bottom: 0;
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: 0.1em;
	color: var(--fg-2);
	line-height: 1.9;
}

/* ---------- Aiguillage vers le devis -------------------------------------- */

.ct__notice {
	padding: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
}
.ct__notice p + p { margin-top: 0.5rem; }
.ct__notice p:nth-child(2) { color: var(--ink-soft); max-width: 56ch; }
.ct__notice .btn { margin-top: 1.25rem; }

/* ---------- Formulaire ------------------------------------------------------ */

.ct-form__errors {
	border-left: 3px solid var(--accent);
	background: rgba(200, 80, 30, 0.06);
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
}
.ct-form__errors ul { margin: 0.5rem 0 0; padding-left: 1.1rem; list-style: disc; }
.ct-form__errors li { margin-top: 0.25rem; }

.ct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ct-form__field { margin: 0 0 1.5rem; }

.ct-form__field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.ct-form__field label em {
	font-style: normal;
	font-weight: 400;
	font-size: 0.85em;
	color: var(--fg-2);
}

.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form select,
.ct-form textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--line);
	background: var(--white);
	border-radius: var(--radius);
	font: inherit;
	color: inherit;
	transition: border-color 0.25s var(--ease);
}
.ct-form input:focus,
.ct-form select:focus,
.ct-form textarea:focus { outline: 0; border-color: var(--accent); }
.ct-form textarea { resize: vertical; min-height: 9rem; }

.ct-form select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%2314120F' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px;
	padding-right: 2.5rem;
	cursor: pointer;
}

.ct-form__consent { margin: 0 0 1.75rem; }
.ct-form__consent label {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: 0.9rem;
	color: var(--ink-soft);
	max-width: 60ch;
}
.ct-form__consent input {
	margin-top: 0.2rem;
	width: 1.1rem;
	height: 1.1rem;
	flex: 0 0 auto;
	accent-color: var(--accent);
}
.ct-form__consent a { text-decoration: underline; }
.ct-form__submit { margin: 0; }

.ct-form--done { padding: 2rem 0; }
.ct-form__done {
	margin-top: 1.25rem;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	max-width: 32ch;
}

/* ---------- Zone d'intervention ---------------------------------------------- */

.ct__zone {
	max-width: 1400px;
	margin: clamp(3.5rem, 9vh, 6rem) auto 0;
	padding-top: clamp(2rem, 5vh, 3rem);
	border-top: 1px solid var(--line);
}

.ct__communes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}
.ct__communes a {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid var(--line);
	border-radius: 100px;
	background: var(--white);
	font-size: 0.875rem;
	transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.ct__communes a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

@media (max-width: 900px) {
	.ct__body { grid-template-columns: 1fr; }
	.ct__side { order: 2; }
}

@media (max-width: 640px) {
	.ct-form__row { grid-template-columns: 1fr; }
}
