/* ==========================================================================
   Ercé Plasturgie — design system
   Bleu de marque #3AA2D6 (relevé sur les 2 sites actuels) + accent industriel
   ambre pour les CTA/numéros, dans l'esprit des thèmes industrie/construction
   de référence (hero photo + overlay sombre, sections en biais, gros numéros).
   ========================================================================== */

:root {
	--erce-blue: #3aa2d6;
	--erce-blue-light: #8fd6ff;
	--erce-blue-dark: #1f7fb0;
	--erce-blue-darker: #103552;
	--erce-navy: #0a1622;
	--erce-navy-soft: #13202e;
	--erce-accent: #ff7a1a;
	--erce-accent-dark: #e0620a;
	--erce-gray-900: #1e2a33;
	--erce-gray-600: #56656e;
	--erce-gray-300: #d7e0e4;
	--erce-gray-200: #e7edf0;
	--erce-gray-100: #f4f7f8;
	--erce-cream: #f4efe7;
	--erce-white: #ffffff;
	--erce-radius: 4px;
	--erce-font: "Roboto", "Segoe UI", Arial, sans-serif;
	--erce-max: 1220px;
}

/* --- Base ------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
	font-family: var(--erce-font);
	color: var(--erce-gray-900);
	font-size: 1.05rem;
	line-height: 1.7;
	background: var(--erce-white);
}

a { color: var(--erce-blue); }
a:hover { color: var(--erce-blue-dark); }

h1, h2, h3, h4 {
	color: var(--erce-navy);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.1rem; }

/* Custom square bullet markers, scoped to page content only —
   must not affect the header/footer <ul> nav menus. */
.page-content ul { list-style: none; padding-left: 0; margin: 0 0 1.1rem; }
.page-content li { margin-bottom: .55rem; padding-left: 1.4rem; position: relative; }
.page-content li::before {
	content: "";
	position: absolute;
	left: 0; top: .5em;
	width: 8px; height: 8px;
	background: var(--erce-accent);
}

.page-header { display: none; }
.page-content { overflow-x: hidden; }

/* Hello Elementor caps .site-main / .site-footer at 1140px for any page
   that isn't built with the Elementor editor (no elementor-page-* body
   class) — that's every page here, since we ship plain HTML content and
   let .erce-wrap manage width per-section. Remove that cap so our
   full-bleed hero/dark sections actually reach the screen edges. */
.site-main,
.site-footer:not(.dynamic-footer),
.site-header .header-inner {
	max-width: none !important;
	width: 100% !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}

/* --- Layout helpers ----------------------------------------------------- */
.erce-wrap { max-width: var(--erce-max); margin-inline: auto; padding-inline: 1.75rem; }
.erce-section { padding-block: 5.5rem; position: relative; }
.erce-section-alt { background: var(--erce-gray-100); }
.erce-section-narrow .erce-wrap { max-width: 820px; }

@media (max-width: 767px) {
	.erce-section { padding-block: 3.5rem; }
}

/* Angled top edge on a section — the "industrial" slanted-panel look.
   Uses a pseudo-element so the clip doesn't cut off real content. */
.erce-slant { margin-top: -1px; }
.erce-slant::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 70px;
	background: inherit;
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
	transform: translateY(-69px);
}
.erce-slant.erce-slant-alt::before { background: var(--erce-gray-100); }
.erce-slant.erce-slant-dark::before { background: var(--erce-navy); }
.erce-slant.erce-slant-white::before { background: var(--erce-white); }

/* --- Header / navigation --------------------------------------------------
   Default state sits transparent on top of the hero photo (nav in white),
   like the reference themes; once scrolled past the hero it becomes a
   solid white bar with dark text. Toggled by main.js (.is-scrolled). */
.site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: transparent;
	box-shadow: none;
	padding-block: 1.6rem !important;
	padding-inline: 1.75rem;
	align-items: center;
	transition: padding .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
	position: fixed;
	background: var(--erce-white);
	box-shadow: 0 8px 24px rgba(10, 22, 34, .1);
	padding-block: .6rem !important;
}
.site-header.is-scrolled .custom-logo-link img { max-height: 42px; }
.site-header .site-title,
.site-header .site-title a {
	color: var(--erce-white) !important;
	font-size: 1.5rem;
	font-weight: 800;
	text-decoration: none;
	transition: color .25s ease;
}
.site-header.is-scrolled .site-title,
.site-header.is-scrolled .site-title a { color: var(--erce-navy) !important; }
.site-header .site-description { color: rgba(255, 255, 255, .7); font-size: .85rem; }
.site-header .custom-logo-link img { max-height: 56px; width: auto; transition: max-height .25s ease; }

.site-navigation ul.menu { display: flex; gap: 2rem; align-items: center; }
.site-navigation ul.menu li a {
	color: var(--erce-white);
	font-weight: 700;
	font-size: .88rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-decoration: none;
	padding: .4rem 0;
	position: relative;
	transition: color .25s ease;
}
.site-header.is-scrolled .site-navigation ul.menu li a { color: var(--erce-gray-900); }
.site-navigation ul.menu li a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: -2px;
	height: 2px;
	background: var(--erce-accent);
	transition: right .2s ease;
}
.site-navigation ul.menu li a:hover::after,
.site-navigation ul.menu li.current-menu-item a::after { right: 0; }
.site-navigation-toggle-holder .site-navigation-toggle {
	background: rgba(255, 255, 255, .12) !important;
	color: var(--erce-white) !important;
}
.site-header.is-scrolled .site-navigation-toggle-holder .site-navigation-toggle {
	background: var(--erce-gray-100) !important;
	color: var(--erce-navy) !important;
}

/* --- Hero -----------------------------------------------------------------
   Directional overlay (opaque left → photo visible right), like the
   reference themes, rather than a flat tint across the whole photo. */
.erce-hero {
	position: relative;
	overflow: hidden;
	background: var(--erce-navy);
	color: var(--erce-white);
	padding-block: 9.5rem 9rem;
}

/* Separate layer for the photo so JS can translate it (parallax) without
   moving the text/buttons that sit in .erce-wrap on top of it. */
.erce-hero-bg {
	position: absolute;
	top: -12%; left: 0; right: 0; bottom: -12%;
	background-size: cover;
	background-position: center;
	will-change: transform;
	z-index: 0;
}
.erce-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6,13,20,.96) 0%, rgba(8,18,28,.88) 32%, rgba(8,18,28,.55) 58%, rgba(8,18,28,.15) 100%);
	z-index: 1;
}
.erce-hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(6,13,20,.75), transparent);
	pointer-events: none;
	z-index: 1;
}
.erce-hero .erce-watermark { z-index: 1; }
.erce-hero .erce-wrap { position: relative; z-index: 2; }
.erce-hero .erce-eyebrow { color: var(--erce-accent); }
.erce-hero .erce-eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px; height: 2px;
	background: var(--erce-accent);
	margin-right: .6rem;
	vertical-align: middle;
}
.erce-hero h1 { color: var(--erce-white); max-width: 760px; }
.erce-hero p { color: rgba(255, 255, 255, .82); max-width: 640px; font-size: 1.12rem; }

/* Slow-drifting blurred gradient orb — adds depth/motion behind the hero
   text without needing any imagery. Sits above the photo, below the text. */
.erce-orb {
	position: absolute;
	width: 46vw;
	height: 46vw;
	max-width: 560px;
	max-height: 560px;
	right: -12%;
	top: 50%;
	transform: translateY(-50%);
	background: radial-gradient(circle at 35% 35%, rgba(255, 122, 26, .55), rgba(58, 162, 214, .25) 55%, transparent 75%);
	filter: blur(50px);
	z-index: 1;
	pointer-events: none;
	animation: erce-orb-float 14s ease-in-out infinite;
}
@keyframes erce-orb-float {
	0%, 100% { transform: translateY(-50%) scale(1); }
	50% { transform: translateY(-46%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .erce-orb { animation: none; } }

/* --- Marquee ticker --------------------------------------------------------
   Full-width infinite-scroll band of keywords — a cheap, high-impact
   motion element that doesn't depend on photography. */
.erce-marquee {
	background: var(--erce-navy);
	overflow: hidden;
	padding-block: 1.1rem;
	position: relative;
	z-index: 2;
}
.erce-marquee-track {
	display: flex;
	width: max-content;
	animation: erce-marquee-scroll 32s linear infinite;
}
.erce-marquee-track span {
	display: inline-flex;
	align-items: center;
	color: rgba(255, 255, 255, .85);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 1.05rem;
	padding-inline: 1.5rem;
	white-space: nowrap;
}
.erce-marquee-track span::after {
	content: "\2726";
	color: var(--erce-accent);
	margin-left: 1.5rem;
	font-size: .8rem;
}
@keyframes erce-marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .erce-marquee-track { animation: none; } }

/* Floating stat card that overlaps the hero's bottom edge */
.erce-hero-stats {
	position: relative;
	z-index: 2;
	margin-top: -5.5rem;
	background: var(--erce-white);
	border-radius: var(--erce-radius);
	box-shadow: 0 24px 50px rgba(10, 22, 34, .18);
	padding: 2.25rem 1.5rem;
}

/* Dark icon-feature band that straddles the hero bottom edge —
   the "3 columns over the hero" pattern seen on industrial themes. */
.erce-feature-strip {
	position: relative;
	z-index: 2;
	margin-top: -4.5rem;
	background: var(--erce-navy-soft);
	border-radius: var(--erce-radius);
	box-shadow: 0 24px 50px rgba(10, 22, 34, .25);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.erce-feature-strip .erce-feature {
	padding: 2.25rem 2rem;
	border-right: 1px solid rgba(255, 255, 255, .08);
}
.erce-feature-strip .erce-feature:last-child { border-right: none; }
.erce-feature-strip .erce-feature-icon { color: var(--erce-accent); margin-bottom: 1rem; }
.erce-feature-strip .erce-feature-icon svg { width: 34px; height: 34px; }
.erce-feature-strip .erce-feature-title { color: var(--erce-white); font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.erce-feature-strip .erce-feature-text { color: rgba(255, 255, 255, .68); font-size: .9rem; margin: 0; }
@media (max-width: 900px) {
	.erce-feature-strip { grid-template-columns: 1fr; margin-top: 2rem; }
	.erce-feature-strip .erce-feature { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* Pill-style label badge (alternative to the eyebrow, used inline). */
.erce-pill {
	display: inline-block;
	background: rgba(255, 122, 26, .1);
	color: var(--erce-accent-dark);
	padding: .4em 1.1em;
	border-radius: 999px;
	font-weight: 700;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 1rem;
}
.erce-section-dark .erce-pill { background: rgba(255, 122, 26, .15); color: var(--erce-accent); }

/* Giant faint background word — the oversized section-name watermark
   seen behind "About"/"Instry" on the reference sites. */
.erce-watermark {
	position: absolute;
	left: 0; right: 0;
	bottom: -.12em;
	text-align: center;
	font-size: clamp(4rem, 13vw, 11rem);
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--erce-gray-900);
	opacity: .04;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	z-index: 0;
	user-select: none;
}
.erce-section-dark .erce-watermark,
.erce-hero .erce-watermark { color: var(--erce-white); opacity: .05; }
.erce-section > .erce-watermark + .erce-wrap,
.erce-hero > .erce-watermark + .erce-wrap { position: relative; z-index: 1; }

/* Small circular "read more" arrow button used on photo cards. */
.erce-arrow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--erce-accent);
	color: var(--erce-white);
	flex-shrink: 0;
	transition: background-color .2s ease, transform .2s ease;
}
.erce-arrow-btn svg { width: 18px; height: 18px; }
a:hover .erce-arrow-btn, .erce-card:hover .erce-arrow-btn { background: var(--erce-accent-dark); transform: rotate(45deg); }

/* Decorative rotating cog watermark for dark sections. */
.erce-cog-decor {
	position: absolute;
	pointer-events: none;
	opacity: .06;
	z-index: 0;
	animation: erce-spin 30s linear infinite;
}
.erce-cog-decor svg { width: 220px; height: 220px; }
@keyframes erce-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Scroll-reveal ------------------------------------------------------- */
.erce-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .6s ease, transform .6s ease;
}
.erce-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.erce-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Eyebrow / kicker ----------------------------------------------------- */
.erce-eyebrow {
	display: inline-flex;
	align-items: center;
	color: var(--erce-accent);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .8rem;
	margin-bottom: .9rem;
}
.erce-eyebrow::before {
	content: "";
	display: inline-block;
	width: 24px; height: 2px;
	background: var(--erce-accent);
	margin-right: .6rem;
}

/* --- Buttons ---------------------------------------------------------- */
.erce-btn {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	background: var(--erce-accent);
	color: var(--erce-white) !important;
	padding: 1em 2.1em;
	border-radius: var(--erce-radius);
	font-weight: 700;
	text-transform: uppercase;
	font-size: .85rem;
	letter-spacing: .04em;
	text-decoration: none !important;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
/* Sweep fill on hover — sits behind the label/arrow (negative z-index
   inside the button's isolated stacking context), so text stays legible. */
.erce-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--erce-accent-dark);
	transform: translateX(-101%);
	transition: transform .35s ease;
	z-index: -1;
}
.erce-btn:hover::before { transform: translateX(0); }
.erce-btn::after { content: "\2192"; transition: transform .2s ease; }
.erce-btn:hover { box-shadow: 0 10px 24px rgba(255, 122, 26, .35); }
.erce-btn:hover::after { transform: translateX(3px); }
.erce-btn.erce-btn-light { background: var(--erce-white); color: var(--erce-navy) !important; }
.erce-btn.erce-btn-light:hover { background: var(--erce-gray-100); }
.erce-btn.erce-btn-outline { background: transparent; color: var(--erce-white) !important; border: 2px solid rgba(255,255,255,.5); }
.erce-btn.erce-btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* --- Dark sections (alternating rhythm) ------------------------------- */
.erce-section-dark { background: var(--erce-navy); color: var(--erce-white); }
.erce-section-dark h1, .erce-section-dark h2, .erce-section-dark h3 { color: var(--erce-white); }
.erce-section-dark p, .erce-section-dark li { color: rgba(255, 255, 255, .78); }
.erce-section-dark a:not(.erce-btn) { color: var(--erce-blue-light); }

/* --- Grids -------------------------------------------------------------- */
.erce-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.erce-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) {
	.erce-grid-2, .erce-grid-3 { grid-template-columns: 1fr; }
}

.erce-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.5rem;
	text-align: center;
}

/* --- Stats -------------------------------------------------------------- */
.erce-stat { text-align: center; }
.erce-stat .erce-stat-number {
	display: block;
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	font-weight: 800;
	color: var(--erce-navy);
	line-height: 1;
	margin-bottom: .4rem;
}
.erce-hero-stats .erce-stat .erce-stat-number { color: var(--erce-blue-dark); }
.erce-stat .erce-stat-label { display: block; font-size: .85rem; color: var(--erce-gray-600); }
.erce-section-dark .erce-stat .erce-stat-number { color: var(--erce-accent); }
.erce-section-dark .erce-stat .erce-stat-label { color: rgba(255, 255, 255, .7); }

/* --- Cards ---------------------------------------------------------------- */
.erce-card {
	position: relative;
	background: var(--erce-white);
	border: 1px solid var(--erce-gray-200);
	border-radius: var(--erce-radius);
	padding: 2.25rem 2rem;
	height: 100%;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.erce-card:hover { box-shadow: 0 20px 40px rgba(10, 22, 34, .12); transform: translateY(-4px); }
.erce-card .erce-card-num {
	position: relative;
	display: inline-block;
	font-size: .85rem;
	font-weight: 800;
	letter-spacing: .05em;
	color: var(--erce-accent);
	margin-bottom: 1rem;
	z-index: 1;
}
.erce-card .erce-card-title { position: relative; font-weight: 700; margin-bottom: .5rem; color: var(--erce-navy); z-index: 1; }
.erce-card .erce-card-text { position: relative; color: var(--erce-gray-600); font-size: .95rem; margin: 0; z-index: 1; }

/* Full-bleed photo card with a bottom gradient caption overlay —
   the "Industries We Serve" tile pattern from the reference themes. */
.erce-card.erce-card-photo {
	padding: 0;
	border: none;
	aspect-ratio: 4 / 5;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}
.erce-card.erce-card-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6,13,20,.92) 0%, rgba(6,13,20,.35) 55%, transparent 100%);
}
.erce-card.erce-card-photo .erce-card-body {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 1.5rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}
.erce-card.erce-card-photo .erce-card-title { color: var(--erce-white); margin: 0; font-size: 1.05rem; }

.erce-section-dark .erce-card { background: var(--erce-navy-soft); border-color: rgba(255, 255, 255, .1); }
.erce-section-dark .erce-card .erce-card-title { color: var(--erce-white); }
.erce-section-dark .erce-card .erce-card-text { color: rgba(255, 255, 255, .72); }

/* --- Badges (certifications) --------------------------------------------- */
.erce-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.erce-badge {
	display: inline-flex;
	align-items: center;
	padding: .55em 1.1em;
	border-radius: 999px;
	background: rgba(255, 122, 26, .12);
	border: 1px solid rgba(255, 122, 26, .4);
	font-size: .85rem;
	font-weight: 700;
	color: var(--erce-accent);
}
.erce-section:not(.erce-section-dark) .erce-badge {
	background: rgba(255, 122, 26, .08);
	color: var(--erce-accent-dark);
	border-color: rgba(255, 122, 26, .3);
}

/* --- Forms (Contact Form 7) ----------------------------------------------- */
.erce-form p { margin-bottom: 1rem; }
.erce-form input[type="text"],
.erce-form input[type="email"],
.erce-form input[type="tel"],
.erce-form textarea,
.erce-form select {
	width: 100%;
	padding: .85em 1em;
	border: 1px solid var(--erce-gray-300);
	border-radius: var(--erce-radius);
	font-family: var(--erce-font);
	background: var(--erce-white);
}
.erce-form input:focus, .erce-form textarea:focus, .erce-form select:focus {
	outline: none;
	border-color: var(--erce-blue);
	box-shadow: 0 0 0 3px rgba(58, 162, 214, .15);
}
.erce-form input[type="submit"] {
	display: inline-flex;
	background: var(--erce-accent);
	color: var(--erce-white);
	border: none;
	padding: 1em 2.2em;
	border-radius: var(--erce-radius);
	font-weight: 700;
	text-transform: uppercase;
	font-size: .85rem;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background-color .2s ease;
}
.erce-form input[type="submit"]:hover { background: var(--erce-accent-dark); }
.erce-form .wpcf7-not-valid-tip { color: #c0392b; font-size: .85rem; margin-top: .25rem; }
.erce-form .wpcf7-response-output { border-radius: var(--erce-radius); margin-top: 1rem; }

/* --- Footer ----------------------------------------------------------- */
.site-footer { background: var(--erce-navy); color: rgba(255, 255, 255, .75); padding-block: 3rem 1.5rem; }
.site-footer .erce-footer-inner { max-width: var(--erce-max); margin-inline: auto; padding-inline: 1.75rem; }
.site-footer .erce-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (max-width: 700px) { .site-footer .erce-footer-grid { grid-template-columns: 1fr; } }
.site-footer .erce-footer-brand { font-weight: 800; color: var(--erce-white); font-size: 1.15rem; margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--erce-accent); }
.site-footer .site-navigation ul.menu { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.site-footer .erce-footer-bottom {
	padding-top: 1.25rem;
	font-size: .85rem;
	color: rgba(255, 255, 255, .5);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem;
}
