/* Updated: 2026-10-27 12:31 (Europe/Zurich) */

/* ==========================================================================
   Extra Child, Alexandre de Miguel: front end styles

   1. Design tokens
   2. Estimation form (Contact Form 7)
   3. Image protection notice (WPCode snippet 4116)
   4. Accessibility and motion preferences
   5. Divi fixes
   6. Redesign: components to come
   ========================================================================== */


/* 1. Design tokens
   Current site values, so the redesign can change them in one place.
   -------------------------------------------------------------------------- */

:root {
	--adm-color-accent: #1e73be;
	--adm-color-text: #333333;
	--adm-color-text-muted: #6b6b6b;
	--adm-color-border: #c4c4c4;
	--adm-color-surface: #ebebeb;
	--adm-color-footer: #999999;
	--adm-color-error: #a3241c;
	--adm-radius: 2px;
	--adm-space-s: .75rem;
	--adm-space-m: 1.25rem;
	--adm-space-l: 1.5rem;
}


/* 2. Estimation form (Contact Form 7)
   Moved from Extra Theme Options > Custom CSS.
   -------------------------------------------------------------------------- */

.wpcf7 label {
	display: block;
	margin-bottom: var(--adm-space-m);
	font-weight: 500;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
	background-color: var(--adm-color-surface);
	color: #000;
	width: 100%;
	border: 1px solid var(--adm-color-border);
	border-radius: var(--adm-radius);
	padding: .6rem var(--adm-space-s);
	font: inherit;
}

.wpcf7 input[type="file"] {
	width: 100%;
	padding: .6rem 0;
	font: inherit;
}

.wpcf7 textarea {
	min-height: 10rem;
	resize: vertical;
}

.wpcf7 input:focus-visible,
.wpcf7 textarea:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
	background-color: #fff;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: var(--adm-color-text-muted);
	opacity: 1;
}

.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 500;
	padding: .7rem 2rem;
	cursor: pointer;
	border: 1px solid #000;
	border-radius: var(--adm-radius);
	background: #000;
	color: #fff;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible {
	background: #fff;
	color: #000;
}

.wpcf7 input[type="submit"]:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Reminder block above the submit button */

.adm-rappel {
	border-left: 3px solid currentColor;
	padding: var(--adm-space-s) 0 var(--adm-space-s) 1rem;
	margin: var(--adm-space-l) 0;
	font-size: .9em;
}

.adm-rappel p:last-child {
	margin-bottom: 0;
	font-size: .95em;
	color: #555;
}

/* Form messages */

.wpcf7 .wpcf7-response-output {
	margin: var(--adm-space-l) 0 0;
	padding: var(--adm-space-s) 1rem;
	border-width: 2px;
	font-size: .95em;
}

.wpcf7 .wpcf7-not-valid-tip {
	font-size: .85em;
	margin-top: .35rem;
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--adm-color-error);
}

.wpcf7 .wpcf7-spinner {
	margin: 0 0 0 var(--adm-space-s);
}


/* 3. Image protection notice (WPCode snippet 4116)
   Moved from Extra Theme Options > Custom CSS.
   -------------------------------------------------------------------------- */

#adm-warning {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(-100px);
	background: rgba(0, 0, 0, .92);
	color: #fff;
	padding: 14px 24px;
	border-radius: 4px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .02em;
	z-index: 999999;
	max-width: 90%;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
	pointer-events: none;
}

#adm-warning.visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}


/* 4. Accessibility and motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	#adm-warning {
		transition: none;
	}
}


/* 5. Divi fixes
   -------------------------------------------------------------------------- */

/*
 * Waypoint modules without animation data stay invisible.
 * With Dynamic CSS off, the full Divi stylesheet hides every .et-waypoint
 * until JavaScript animates it, but the French front page (Polylang default
 * language) is rendered without its animation classes, so its images never
 * appear, even after Divi adds .et-animated. Show any waypoint module that
 * is not a Divi 4 animation; real animations (.et_animated) keep working.
 */
.et-waypoint:not(.et_animated) {
	opacity: 1;
}


/* 6. Redesign: components to come
   Header and navigation, page banners, home sections, gallery, footer.
   -------------------------------------------------------------------------- */
