/* EchafPro — site vitrine et espace client (lot 8).
   Acier galvanisé et ardoise ; la couleur de la société (--eps-marque) en accent ; un seul élément fort :
   la trame d'échafaudage jaune de chantier sur la photo d'accueil. Pas de police externe (RGPD). */

.eps {
	--eps-ardoise: #1d2a33;
	--eps-encre: #22303a;
	--eps-gris: #56636e;
	--eps-trait: #cfd6dc;
	--eps-acier: #eef1f3;
	--eps-blanc: #fff;
	--eps-signal: #f2b300;
	--eps-ok: #1c6e41;
	--eps-alerte: #a8261d;
	--eps-attente: #7d5300;
	--eps-titre: Bahnschrift, "DIN Alternate", "DIN 2014", "Barlow Semi Condensed", "Roboto Condensed", "DejaVu Sans Condensed", "Liberation Sans Narrow", "Arial Narrow", sans-serif;
	--eps-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--eps-cadre: 1160px;
	font-family: var(--eps-texte);
	font-size: 17px;
	line-height: 1.6;
	color: var(--eps-encre);
	-webkit-font-smoothing: antialiased;
}
.eps *, .eps *::before, .eps *::after { box-sizing: border-box; }
.eps img { max-width: 100%; height: auto; display: block; }
.eps a { color: var(--eps-marque); text-underline-offset: .18em; }
.eps a:hover { text-decoration-thickness: 2px; }
.eps :focus-visible { outline: 3px solid var(--eps-signal); outline-offset: 2px; }
.eps h1, .eps h2, .eps h3 { font-family: var(--eps-titre); font-weight: 600; line-height: 1.1; color: var(--eps-ardoise); margin: 0 0 .5em; letter-spacing: -.005em; font-stretch: semi-condensed; }
.eps h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.eps h3 { font-size: 1.28rem; margin-top: 1.4em; }
.eps p { margin: 0 0 1em; }

body.eps-corps { margin: 0; background: var(--eps-blanc, #fff); }
.eps-cadre { max-width: var(--eps-cadre); margin: 0 auto; padding: 0 24px; }
.eps-evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--eps-ardoise); color: #fff !important; padding: 10px 16px; }
.eps-evitement:focus { left: 12px; top: 12px; }

/* En-tête */
.eps-entete { background: var(--eps-blanc); border-bottom: 1px solid var(--eps-trait); position: relative; z-index: 10; }
.eps-entete-ligne { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.eps-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.eps-logo img { max-height: 56px; width: auto; }
.eps-logo-texte { font-family: var(--eps-titre); font-weight: 700; font-size: 1.35rem; color: var(--eps-ardoise) !important; }
.eps-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.eps-nav ul { list-style: none; display: flex; gap: 4px 20px; margin: 0; padding: 0; }
.eps-nav ul a { color: var(--eps-encre); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 3px solid transparent; white-space: nowrap; font-size: .97rem; }
.eps-nav-actions .eps-bouton { white-space: nowrap; padding: 11px 18px; }
.eps-nav ul a:hover, .eps-nav ul a[aria-current="page"] { border-bottom-color: var(--eps-marque); }
.eps-nav-espace a { color: var(--eps-gris) !important; }
.eps-nav-actions { display: flex; align-items: center; gap: 16px; }
.eps-entete-tel { font-family: var(--eps-titre); font-weight: 600; font-size: 1.1rem; color: var(--eps-ardoise) !important; text-decoration: none; white-space: nowrap; }
.eps-menu-bouton { display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--eps-trait); border-radius: 3px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--eps-ardoise); cursor: pointer; }
.eps-menu-icone, .eps-menu-icone::before, .eps-menu-icone::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.eps-menu-icone::before, .eps-menu-icone::after { content: ""; position: absolute; left: 0; }
.eps-menu-icone::before { top: -6px; }
.eps-menu-icone::after { top: 6px; }

/* Boutons */
.eps-bouton { display: inline-block; font-family: var(--eps-titre); font-weight: 600; font-size: 1.06rem; line-height: 1.2; padding: 14px 22px; border-radius: 3px; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; text-align: center; }
.eps-bouton-marque { background: var(--eps-marque); color: #fff !important; }
.eps-bouton-marque:hover { filter: brightness(1.12); }
.eps-bouton-signal { background: var(--eps-signal); color: var(--eps-ardoise) !important; }
.eps-bouton-signal:hover { background: #ffc61a; }
.eps-bouton-contour { border-color: rgba(255,255,255,.85); color: #fff !important; }
.eps-bouton-contour:hover { background: rgba(255,255,255,.1); }
.eps-bouton-texte { background: none; border: 0; padding: 0; font: inherit; color: var(--eps-marque); text-decoration: underline; cursor: pointer; }
.eps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.eps-lien-fort { font-weight: 600; }

/* Accueil : photo, voile, trame d'échafaudage */
.eps-accueil { position: relative; background: var(--eps-ardoise); color: #fff; overflow: hidden; min-height: min(78vh, 680px); display: flex; align-items: center; }
.eps-accueil-fond { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: .5; }
.eps-accueil-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,42,51,.94) 0%, rgba(29,42,51,.72) 48%, rgba(29,42,51,.2) 100%); z-index: 1; }
.eps-trame { position: absolute; right: 0; top: 0; height: 100%; width: 50%; z-index: 1; fill: none; stroke: var(--eps-signal); stroke-width: 3; opacity: .7; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.eps-trame .eps-trame-fine { stroke-width: 1; opacity: .5; }
.eps-trame .eps-trame-diag { stroke-width: 2.5; }
.eps-accueil-texte { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.eps-accueil h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.02; max-width: 15ch; margin-bottom: .45em; }
.eps-accueil-sous { font-size: 1.15rem; max-width: 46ch; color: rgba(255,255,255,.88); }
.eps-accueil-zone { margin-top: 1.4em; font-size: .95rem; color: rgba(255,255,255,.7); }

/* Sections */
.eps-section { padding: 72px 0; }
.eps-section-acier { background: var(--eps-acier); }
.eps-bandeau-page { background: var(--eps-ardoise); padding: 44px 0 40px; border-bottom: 4px solid var(--eps-signal); }
.eps-bandeau-page h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin: 0; }
.eps-texte { max-width: 70ch; }
.eps-discret { color: var(--eps-gris); font-size: .92rem; }

/* Prestations en colonnes séparées par des montants */
.eps-montants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 32px 0 24px; }
.eps-montant { border-left: 4px solid var(--eps-ardoise); padding: 4px 0 4px 20px; }
.eps-montant h3 { margin-top: 0; }
.eps-montant p { color: var(--eps-gris); margin: 0; }

.eps-prestations { display: grid; gap: 48px; }
.eps-prestation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; border-top: 4px solid var(--eps-ardoise); padding-top: 24px; }
.eps-prestation h2 { margin: 0; }
.eps-liste { margin: 0; padding: 0; list-style: none; }
.eps-liste li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--eps-trait); position: relative; }
.eps-liste li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 3px; background: var(--eps-marque); }
.eps-pastilles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.eps-pastilles li { background: var(--eps-acier); border: 1px solid var(--eps-trait); border-radius: 3px; padding: 6px 12px; }

/* Déroulement : une lisse relie les étapes */
.eps-etapes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: eps-etape; position: relative; }
.eps-etapes::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 4px; background: var(--eps-ardoise); }
.eps-etapes li { counter-increment: eps-etape; position: relative; padding-top: 58px; }
.eps-etapes li::before { content: counter(eps-etape); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--eps-signal); color: var(--eps-ardoise); font-family: var(--eps-titre); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; border: 4px solid var(--eps-acier); }
.eps-etapes h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.eps-etapes p { color: var(--eps-gris); font-size: .96rem; margin: 0; }

/* Galerie */
.eps-galerie { list-style: none; margin: 32px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.eps-galerie a { display: block; }
.eps-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.eps-galerie p { margin: 8px 0 0; font-size: .94rem; color: var(--eps-gris); }
.eps-visionneuse { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); color: #fff; }
.eps-visionneuse::backdrop { background: rgba(15, 22, 27, .9); }
.eps-visionneuse img { max-height: 82vh; width: auto; margin: 0 auto; }
.eps-visionneuse p { text-align: center; margin: 10px 0 0; }
.eps-visionneuse-fermer { position: fixed; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Bande de contact */
.eps-bande { background: var(--eps-ardoise); color: #fff; padding: 56px 0; }
.eps-bande h2 { color: #fff; }
.eps-bande p { color: rgba(255,255,255,.85); }
.eps-bande-grille { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.eps-bande-contact { justify-self: end; text-align: right; }
.eps-bande-tel { font-family: var(--eps-titre); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .3em !important; }
.eps-bande-tel a { color: var(--eps-signal); text-decoration: none; }
.eps-contact .eps-bande-tel a { color: var(--eps-ardoise); }

/* Contact */
.eps-contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; }
.eps-coordonnees { border-left: 4px solid var(--eps-ardoise); padding-left: 24px; }

/* Formulaires */
.eps-formulaire-cadre > * { max-width: 860px; }
.eps-formulaire { margin-top: 8px; }
.eps-groupe { border: 0; padding: 0; margin: 0 0 32px; }
.eps-groupe legend { font-family: var(--eps-titre); font-weight: 600; font-size: 1.4rem; color: var(--eps-ardoise); margin-bottom: 14px; padding: 0; }
.eps-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.eps-champ-large, .eps-grille > .eps-champ-large { grid-column: 1 / -1; }
.eps-champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.eps-facultatif { font-weight: 400; color: var(--eps-gris); font-size: .9em; }
.eps-champ input:not([type="checkbox"]):not([type="radio"]), .eps-champ select, .eps-champ textarea { width: 100%; font: inherit; color: var(--eps-encre); background: #fff; border: 1.5px solid #aab4bc; border-radius: 3px; padding: 11px 12px; min-height: 48px; }
.eps-champ textarea { min-height: 120px; resize: vertical; }
.eps-champ input:focus, .eps-champ select:focus, .eps-champ textarea:focus { border-color: var(--eps-marque); outline: 3px solid color-mix(in srgb, var(--eps-marque) 30%, transparent); outline-offset: 0; }
.eps-aide { font-size: .88rem; color: var(--eps-gris); margin: 6px 0 0; }
.eps-champ-case label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.eps-champ-case input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.eps-choix { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.eps-choix label { display: flex; align-items: center; gap: 8px; border: 1.5px solid #aab4bc; border-radius: 3px; padding: 10px 14px; cursor: pointer; }
.eps-choix label:has(input:checked) { border-color: var(--eps-marque); box-shadow: inset 0 0 0 1px var(--eps-marque); }
.eps-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eps-alerte { border-left: 5px solid; padding: 16px 20px; margin: 0 0 24px; background: var(--eps-acier); }
.eps-alerte h2 { margin-bottom: .3em; }
.eps-alerte p:last-child, .eps-alerte ul { margin-bottom: 0; }
.eps-alerte-ok { border-color: var(--eps-ok); }
.eps-alerte-erreur { border-color: var(--eps-alerte); }

/* Espace client */
.eps-espace-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--eps-trait); padding-bottom: 14px; margin-bottom: 28px; }
.eps-espace-entete p, .eps-espace-entete form { margin: 0; }
.eps-connexion { max-width: 560px; }
.eps-solde { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.eps-solde > div { border-left: 4px solid var(--eps-ardoise); padding: 4px 0 4px 18px; }
.eps-solde p { margin: 0; color: var(--eps-gris); font-size: .93rem; }
.eps-solde .eps-solde-montant { font-family: var(--eps-titre); font-weight: 700; font-size: 2rem; color: var(--eps-ardoise); line-height: 1.2; }
.eps-solde .eps-solde-echu { color: var(--eps-alerte); font-weight: 600; }
.eps-iban { font-family: var(--eps-titre); font-size: 1.1rem !important; color: var(--eps-ardoise) !important; letter-spacing: .02em; }
.eps-chantiers { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--eps-trait); }
.eps-chantiers a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) 11.5em; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--eps-trait); text-decoration: none; color: var(--eps-encre); }
.eps-chantiers a:hover { background: var(--eps-acier); }
.eps-chantier-nom { font-weight: 600; color: var(--eps-marque); }
.eps-chantiers .eps-etat { justify-self: end; }
.eps-docs { list-style: none; padding: 0; margin: 0 0 16px; }
.eps-docs li { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--eps-trait); }
.eps-docs li > span:first-child { flex: 1 1 260px; }
.eps-docs .eps-bouton { padding: 8px 14px; font-size: .98rem; }
.eps-defile { overflow-x: auto; margin-bottom: 8px; }
.eps-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.eps-table th { text-align: left; font-weight: 600; color: var(--eps-gris); border-bottom: 2px solid var(--eps-ardoise); padding: 8px 10px 8px 0; white-space: nowrap; }
.eps-table td { border-bottom: 1px solid var(--eps-trait); padding: 10px 10px 10px 0; vertical-align: top; }
.eps-num { text-align: right !important; white-space: nowrap; }
.eps-etat { display: inline-block; font-size: .82rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; white-space: nowrap; vertical-align: middle; }
.eps-etat-ok { background: #e2f2e8; color: var(--eps-ok); }
.eps-etat-alerte { background: #fbe8e6; color: var(--eps-alerte); }
.eps-etat-attente { background: #fff1cc; color: var(--eps-attente); }
.eps-etat-neutre { background: var(--eps-acier); color: var(--eps-gris); }

/* Pied de page */
.eps-pied { background: #141d23; color: rgba(255,255,255,.78); padding: 48px 0 0; font-size: .95rem; }
.eps-pied a { color: #fff; }
.eps-pied-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.eps-pied-nom { font-family: var(--eps-titre); font-weight: 600; font-size: 1.2rem; color: #fff; }
.eps-pied-discret { color: rgba(255,255,255,.6); }
.eps-pied-liens { list-style: none; margin: 0; padding: 0; }
.eps-pied-liens li { margin-bottom: 6px; }
.eps-pied-bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; padding-bottom: 24px; color: rgba(255,255,255,.5); font-size: .86rem; }

/* Mise en page du thème : les sections restent dans la largeur du contenu. */
.eps-dans-theme .eps-section { padding: 32px 0; }
.eps-dans-theme .eps-cadre { padding: 0; }
.eps-dans-theme .eps-accueil .eps-cadre { padding: 0 24px; }

@media (max-width: 1380px) and (min-width: 1181px) {
	.eps-entete-tel { display: none; }
	.eps-nav { gap: 18px; }
	.eps-nav ul { gap: 4px 17px; }
}
@media (max-width: 1180px) {
	.eps-menu-bouton { display: flex; }
	.eps-entete-ligne { flex-wrap: wrap; }
	.eps-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 4px 0 20px; }
	.eps-nav.eps-ouvert { display: flex; }
	.eps-nav ul { flex-direction: column; gap: 0; }
	.eps-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--eps-trait); }
	.eps-nav-actions { flex-wrap: wrap; }
	.eps-entete-tel { margin-right: auto; }
}
@media (max-width: 960px) {
	.eps-etapes { grid-template-columns: 1fr; gap: 0; }
	.eps-etapes::before { left: 19px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
	.eps-etapes li { padding: 0 0 26px 64px; min-height: 42px; }
	.eps-montants, .eps-pied-grille { grid-template-columns: 1fr; }
	.eps-prestation, .eps-contact, .eps-bande-grille { grid-template-columns: 1fr; gap: 20px; }
	.eps-bande-contact { justify-self: start; text-align: left; }
	.eps-trame { width: 80%; opacity: .35; }
}
@media (max-width: 640px) {
	.eps { font-size: 16px; }
	.eps-cadre { padding: 0 16px; }
	.eps-section { padding: 48px 0; }
	.eps-grille { grid-template-columns: 1fr; }
	.eps-accueil { min-height: 0; }
	.eps-accueil-texte { padding-top: 48px; padding-bottom: 48px; }
	.eps-actions .eps-bouton { flex: 1 1 100%; }
	.eps-chantiers a { grid-template-columns: 1fr; gap: 2px; }
	.eps-chantiers .eps-etat { justify-self: start; }
	.eps-etat { white-space: normal; }
	.eps-entete-tel { display: none; }
	.eps-table, .eps-table tbody, .eps-table tr, .eps-table td { display: block; }
	.eps-table thead { display: none; }
	.eps-table tr { border-bottom: 1px solid var(--eps-trait); padding: 10px 0; }
	.eps-table td { border: 0; padding: 2px 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px; }
	.eps-table td::before { content: attr(data-l); color: var(--eps-gris); font-size: .88rem; }
	.eps-table td.eps-num { text-align: left !important; }
}
@media (prefers-reduced-motion: reduce) {
	.eps * { transition: none !important; animation: none !important; }
}
