/* =========================================================
   Étude Premium – site public d'une étude de commissaire de justice
   Encre et laiton. Caslon pour la voix de l'acte, Public Sans pour l'information.
   ========================================================= */

@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/libre-caslon-text-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/libre-caslon-text-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/libre-caslon-text-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-700-normal.woff2) format("woff2"); }

:root {
	--encre: #14284b;
	--encre-2: #1d3766;
	--nuit: #0c1a33;
	--laiton: #b08433;
	--laiton-vif: #c9a24e;
	--laiton-clair: #dcc28c;
	--brume: #edf0f5;
	--filet: #d6dce6;
	--texte: #1b2230;
	--gris: #566173;
	--blanc: #ffffff;
	--vert: #1e7a46;
	--rouge: #b0362a;

	--serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
	--sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--largeur: 1180px;
	--gouttiere: clamp(18px, 4vw, 40px);
	--section: clamp(64px, 9vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--blanc); color: var(--texte); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--encre-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--encre); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--laiton-vif); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--encre); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
h3, h4 { font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important; }
.ep-sauter { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--blanc); padding: 10px 14px; border-radius: 6px; }
.ep-sauter:focus { left: 8px; }

.ep-conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- Boutons et liens ---------- */
.ep-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 50px; padding: 0 26px; border-radius: 4px; border: 1.5px solid transparent;
	font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ep-bouton-or { background: var(--laiton-vif); color: var(--nuit); border-color: var(--laiton-vif); }
.ep-bouton-or:hover { background: var(--laiton-clair); border-color: var(--laiton-clair); color: var(--nuit); }
.ep-bouton-contour { border-color: rgba(255,255,255,.45); color: var(--blanc); }
.ep-bouton-contour:hover { border-color: var(--laiton-clair); color: var(--blanc); }
.ep-bouton-encre { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.ep-bouton-encre:hover { background: var(--encre-2); color: var(--blanc); }
.ep-tel { font-weight: 400; opacity: .85; }
.ep-lien { font-weight: 600; color: var(--encre); text-decoration: none; border-bottom: 1.5px solid var(--laiton); padding-bottom: 2px; }
.ep-lien:hover { border-bottom-width: 3px; }

/* ---------- Pré-en-tête ---------- */
.ep-preheader { background: var(--nuit); color: #b9c4d8; font-size: 13.5px; }
.ep-preheader .ep-conteneur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.ep-preheader p { margin: 0; }
.ep-preheader-contact { display: flex; gap: 22px; }
.ep-preheader a { color: var(--laiton-clair); text-decoration: none; font-weight: 600; }

/* ---------- En-tête ---------- */
.ep-entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.admin-bar .ep-entete { top: 32px; }
.ep-entete-ligne { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.ep-marque { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--encre); flex: none; }
.ep-logo { width: auto; max-height: 56px; max-width: 120px; }
.ep-monogramme {
	width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--laiton);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 24px; color: var(--encre); box-shadow: inset 0 0 0 4px var(--blanc), inset 0 0 0 5px var(--laiton);
}
.ep-marque-texte { display: flex; flex-direction: column; line-height: 1.2; }
.ep-marque-nom { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.ep-marque-titre { font-size: 13.5px; color: var(--gris); }

.ep-navigation { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.ep-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ep-menu a { display: block; padding: 10px 12px; color: var(--texte); font-weight: 500; font-size: 15.5px; text-decoration: none; position: relative; }
.ep-menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--laiton); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.ep-menu a:hover::after, .ep-menu .current-menu-item > a::after, .ep-menu .current_page_item > a::after, .ep-menu .current_page_parent > a::after { transform: scaleX(1); }
.ep-menu .current-menu-item > a, .ep-menu .current_page_item > a { color: var(--encre); font-weight: 600; }
.ep-menu .sub-menu { display: none; }
.ep-entete-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }

.ep-menu-bouton { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 1px solid var(--filet); border-radius: 4px; padding: 10px 14px; font: 600 15px var(--sans); color: var(--encre); cursor: pointer; }
.ep-menu-icone { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; }
.ep-menu-icone span { height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.ep-menu-bouton[aria-expanded="true"] .ep-menu-icone span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ep-menu-bouton[aria-expanded="true"] .ep-menu-icone span:nth-child(2) { opacity: 0; }
.ep-menu-bouton[aria-expanded="true"] .ep-menu-icone span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Héros : la page s'ouvre sur le sceau de l'étude ---------- */
.ep-hero { background: var(--encre); color: var(--blanc); position: relative; overflow: hidden; }
.ep-hero::before {
	content: ""; position: absolute; right: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(201,162,78,.16), rgba(201,162,78,0));
	pointer-events: none;
}
.ep-hero-grille { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); }
.ep-hero-nom { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--laiton-clair); margin-bottom: 18px; }
.ep-hero h1 { color: var(--blanc); font-size: clamp(2.3rem, 4.6vw, 3.75rem); line-height: 1.08; margin-bottom: 24px; max-width: 16ch; }
.ep-hero-intro { font-size: clamp(17px, 1.6vw, 19px); color: #cdd6e6; max-width: 54ch; margin-bottom: 34px; }
.ep-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.ep-hero-sceau { color: var(--laiton-clair); justify-self: center; width: 100%; max-width: 420px; }

.ep-sceau { width: 100%; height: auto; overflow: visible; }
.ep-sceau-texte { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; }
.ep-sceau-initiales { font-family: var(--serif); font-weight: 400; letter-spacing: .04em; }
.ep-sceau-pays { font-family: var(--serif); font-style: italic; }
.ep-sceau-anneau { transform-origin: 200px 200px; animation: ep-apposer 1.6s cubic-bezier(.2,.75,.25,1) both; }
.ep-sceau-coeur { animation: ep-apparaitre 1s .7s ease both; }
@keyframes ep-apposer { from { transform: rotate(-40deg) scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ep-apparaitre { from { opacity: 0; } to { opacity: 1; } }

.ep-attestation { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 26px 0 34px; border-top: 1px solid rgba(220,194,140,.35); }
.ep-attestation > div { padding: 0 24px; border-left: 1px solid rgba(220,194,140,.35); }
.ep-attestation > div:first-child { padding-left: 0; border-left: 0; }
.ep-attestation dt { font-size: 13.5px; color: #9fb0cc; margin-bottom: 4px; }
.ep-attestation dd { margin: 0; font-family: var(--serif); font-size: 18px; color: var(--blanc); line-height: 1.35; }

/* ---------- Sections ---------- */
.ep-section { padding: var(--section) 0; }
.ep-section-tete { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.ep-section-tete h2, .ep-etapes h2, .ep-presentation h2, .ep-appel h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.ep-section-tete p { color: var(--gris); font-size: 18px; margin: 0; }
.ep-section-tete-ligne { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.ep-section-suite { margin: 40px 0 0; }

/* Missions : une liste, pas des cartes */
.ep-missions-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); row-gap: 44px; }
.ep-missions-liste li { border-top: 1px solid var(--filet); padding-top: 22px; position: relative; }
.ep-missions-liste li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--laiton); }
.ep-missions-liste h3 { font-size: 19px; margin-bottom: 8px; }
.ep-missions-liste p { color: var(--gris); margin: 0; font-size: 16px; }

/* Étapes : une vraie suite, numérotée */
.ep-etapes { background: var(--brume); }
.ep-etapes h2 { margin-bottom: clamp(36px, 5vw, 56px); }
.ep-etapes-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: etape; }
.ep-etapes-liste li { counter-increment: etape; position: relative; padding-top: 70px; }
.ep-etapes-liste li::before {
	content: counter(etape); position: absolute; top: 0; left: 0;
	font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--laiton);
}
.ep-etapes-liste li::after { content: ""; position: absolute; top: 28px; left: 52px; right: -18px; height: 1px; background: var(--filet); }
.ep-etapes-liste li:last-child::after { display: none; }
.ep-etapes-liste h3 { font-size: 18px; margin-bottom: 6px; }
.ep-etapes-liste p { color: var(--gris); font-size: 16px; margin: 0; }

/* Présentation du titulaire */
.ep-presentation-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ep-presentation-grille.ep-sans-photo { grid-template-columns: minmax(0, 1fr); }
.ep-sans-photo .ep-presentation-texte { max-width: 760px; }
.ep-presentation-photo { margin: 0; position: relative; }
.ep-presentation-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--laiton); z-index: 0; }
.ep-presentation-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ep-presentation-texte p { max-width: 62ch; }
.ep-fiche { margin: 30px 0 28px; border-top: 1px solid var(--filet); }
.ep-fiche > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.ep-fiche dt { color: var(--gris); font-size: 15px; }
.ep-fiche dd { margin: 0; font-weight: 600; color: var(--encre); }

/* Actualités */
.ep-actualites { padding-top: 0; }
.ep-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.ep-article-image { display: block; margin-bottom: 16px; overflow: hidden; }
.ep-article-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ep-article-date { font-size: 14px; color: var(--gris); margin-bottom: 6px; }
.ep-article-resume h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; }
.ep-article-resume h3 a { color: var(--encre); text-decoration: none; }
.ep-article-resume h3 a:hover { text-decoration: underline; }
.ep-article-resume p { color: var(--gris); font-size: 16px; }

/* Appel à l'action */
.ep-appel { background: var(--encre); color: var(--blanc); padding: clamp(52px, 7vw, 84px) 0; border-top: 3px solid var(--laiton); }
.ep-appel-grille { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.ep-appel h2 { color: var(--blanc); }
.ep-appel p { color: #cdd6e6; margin: 0; max-width: 56ch; }
.ep-appel-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- Pages intérieures ---------- */
.ep-bandeau { background: var(--encre); color: var(--blanc); padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); border-bottom: 3px solid var(--laiton); }
.ep-bandeau h1 { color: var(--blanc); font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0; max-width: 22ch; }
.ep-bandeau-intro { color: #cdd6e6; font-size: 18px; max-width: 60ch; margin: 14px 0 0; }
.ep-fil { margin: 0 0 12px; font-size: 14.5px; }
.ep-fil a { color: var(--laiton-clair); }

.ep-page { padding-top: clamp(44px, 6vw, 72px); padding-bottom: var(--section); }
.ep-page-image { margin: 0 0 36px; }
.ep-texte { max-width: 70ch; font-size: 18px; }
.ep-texte h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.ep-texte h3 { margin-top: 1.4em; }
.ep-texte ul, .ep-texte ol { padding-left: 1.2em; }
.ep-texte li { margin-bottom: .4em; }
.ep-texte li::marker { color: var(--laiton); }
.ep-texte blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--laiton); font-family: var(--serif); font-size: 21px; color: var(--encre); }
.ep-suivants { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--filet); font-size: 15.5px; }

/* Nos missions (détail) */
.ep-page-missions { padding-top: clamp(32px, 5vw, 56px); padding-bottom: var(--section); }
.ep-mission-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 72px); padding: 36px 0; border-bottom: 1px solid var(--filet); }
.ep-mission-detail h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0; }
.ep-mission-detail p { max-width: 64ch; }
.ep-mission-resume { font-weight: 600; color: var(--encre); }

/* Contact */
.ep-contact-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); padding-top: clamp(40px, 6vw, 64px); padding-bottom: var(--section); }
.ep-contact-grille h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.ep-coordonnees { background: var(--brume); padding: 30px; align-self: start; border-top: 3px solid var(--laiton); }
.ep-coordonnees dl { margin: 0 0 20px; }
.ep-coordonnees dl > div { padding: 12px 0; border-bottom: 1px solid var(--filet); }
.ep-coordonnees dt { font-size: 14px; color: var(--gris); }
.ep-coordonnees dd { margin: 2px 0 0; font-weight: 500; }
.ep-carte { margin-bottom: 16px; }
.ep-carte iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; }

.ep-formulaire form { margin-top: 8px; }
.ep-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.ep-champ { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.ep-large { grid-column: 1 / -1; }
.ep-champ label { font-weight: 600; font-size: 15px; color: var(--encre); }
.ep-champ input, .ep-champ select, .ep-champ textarea {
	width: 100%; min-height: 50px; padding: 10px 14px; font: 16px/1.4 var(--sans); color: var(--texte);
	background: var(--blanc); border: 1.5px solid #c3cbd8; border-radius: 4px;
}
.ep-champ textarea { min-height: 150px; resize: vertical; }
.ep-champ input:focus, .ep-champ select:focus, .ep-champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(201,162,78,.35); }
.ep-aide { font-size: 14.5px; color: var(--gris); }
.ep-accord label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ep-accord input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--encre); flex: none; }
.ep-piege { position: absolute !important; left: -9999px; }
.ep-message { padding: 16px 18px; margin-bottom: 22px; border-left: 4px solid; }
.ep-message p { margin: 0; }
.ep-message-ok { background: #e8f4ed; border-color: var(--vert); color: #144d2d; }
.ep-message-erreur { background: #fbecea; border-color: var(--rouge); color: #6e1f17; }

/* Liste d'actualités */
.ep-liste-articles { padding-top: clamp(44px, 6vw, 72px); padding-bottom: var(--section); }
.ep-vide { color: var(--gris); font-size: 18px; }
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--filet); text-decoration: none; color: var(--encre); }
.nav-links .current { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

/* ---------- Pied de page ---------- */
.ep-pied { background: var(--nuit); color: #b9c4d8; font-size: 15.5px; }
.ep-pied a { color: #dfe6f2; text-decoration: none; }
.ep-pied a:hover { color: var(--laiton-clair); text-decoration: underline; }
.ep-pied-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-top: 64px; padding-bottom: 48px; }
.ep-pied-nom { font-family: var(--serif); font-size: 22px; color: var(--blanc); margin-bottom: 10px; }
.ep-pied p { margin: 0 0 6px; }
.ep-pied-titre { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--laiton-clair); margin-bottom: 14px; }
.ep-pied-menu { list-style: none; margin: 0 0 14px; padding: 0; }
.ep-pied-menu li { margin-bottom: 6px; }
.ep-pied-reseaux { display: flex; gap: 16px; flex-wrap: wrap; }
.ep-pied-bas { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 26px; font-size: 14px; color: #8d9ab3; }
.ep-pied-bas::before { content: ""; position: absolute; top: 0; left: var(--gouttiere); right: var(--gouttiere); height: 1px; background: rgba(255,255,255,.12); }
.ep-pied-bas a { color: #8d9ab3; }

/* ---------- Éditeur : alignements de base ---------- */
.alignwide { max-width: 1000px; }
.alignfull { max-width: none; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--gris); }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
	.ep-menu-bouton { display: inline-flex; }
	.ep-navigation {
		position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
		background: var(--blanc); border-bottom: 1px solid var(--filet); padding: 8px var(--gouttiere) 22px; box-shadow: 0 16px 30px rgba(12,26,51,.12);
	}
	.ep-navigation.ouvert { display: flex; }
	.ep-menu { flex-direction: column; }
	.ep-menu a { padding: 14px 0; border-bottom: 1px solid var(--brume); font-size: 17px; }
	.ep-menu a::after { display: none; }
	.ep-entete-cta { margin-top: 18px; min-height: 50px; }
	.ep-missions-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ep-etapes-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.ep-etapes-liste li::after { display: none; }
	.ep-pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
	body { font-size: 16.5px; }
	.ep-preheader-statut { display: none; }
	.ep-preheader-contact span { display: none; }
	.ep-preheader .ep-conteneur { justify-content: center; }
	.ep-entete-ligne { min-height: 70px; }
	.ep-marque-nom { font-size: 16px; }
	.ep-marque-titre { font-size: 12.5px; }
	.ep-monogramme { width: 42px; height: 42px; font-size: 20px; }
	.ep-menu-libelle { display: none; }
	.ep-hero-grille { grid-template-columns: 1fr; }
	.ep-hero-sceau { order: -1; max-width: 230px; justify-self: start; }
	.ep-hero-actions .ep-bouton { width: 100%; }
	.ep-attestation { grid-template-columns: 1fr; gap: 14px; }
	.ep-attestation > div { padding: 0; border-left: 0; }
	.ep-missions-liste, .ep-etapes-liste, .ep-articles { grid-template-columns: 1fr; }
	.ep-presentation-grille { grid-template-columns: 1fr; }
	.ep-presentation-photo { max-width: 380px; }
	.ep-fiche > div { grid-template-columns: 1fr; gap: 2px; }
	.ep-appel-grille { grid-template-columns: 1fr; }
	.ep-appel-actions { justify-content: flex-start; }
	.ep-appel-actions .ep-bouton { width: 100%; }
	.ep-mission-detail { grid-template-columns: 1fr; gap: 10px; }
	.ep-contact-grille { grid-template-columns: 1fr; }
	.ep-champs { grid-template-columns: 1fr; }
	.ep-coordonnees { padding: 22px; }
	.ep-pied-grille { grid-template-columns: 1fr; padding-top: 48px; }
	.ep-texte { font-size: 17px; }
}
@media (max-width: 782px) { .admin-bar .ep-entete { top: 0; } }

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ep-sceau-anneau, .ep-sceau-coeur { animation: none; }
	.ep-menu a::after, .ep-bouton, .ep-menu-icone span { transition: none; }
}

/* ---------- Impression ---------- */
@media print {
	.ep-preheader, .ep-entete, .ep-pied, .ep-appel, .ep-formulaire { display: none; }
	.ep-hero, .ep-bandeau { background: none; color: #000; }
	.ep-hero h1, .ep-bandeau h1 { color: #000; }
}

/* ---------- Tchat WhatsApp instantané ---------- */
.ep-wa { --wa: #1f9d55; --wa-fonce: #137a3f; --wa-fond: #efeae2; position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: var(--sans); }
.ep-wa-bouton { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 28px; background: var(--wa); color: #fff; font: 600 15px/1 var(--sans); cursor: pointer; box-shadow: 0 6px 20px rgba(12, 26, 51, .28); transition: background .15s, transform .15s; }
.ep-wa-bouton:hover { background: var(--wa-fonce); transform: translateY(-1px); }
.ep-wa-bouton:focus-visible { outline: 3px solid var(--laiton-vif); outline-offset: 3px; }
.ep-wa.ouvert .ep-wa-libelle { display: none; }
.ep-wa.ouvert .ep-wa-bouton { width: 56px; padding: 0; justify-content: center; }
.ep-wa-fenetre { position: absolute; right: 0; bottom: 72px; width: min(370px, calc(100vw - 32px)); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 48px rgba(12, 26, 51, .3); display: flex; flex-direction: column; max-height: min(620px, calc(100vh - 110px)); }
.ep-wa-fenetre[hidden] { display: none; }
.ep-wa-tete { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--encre); color: #fff; }
.ep-wa-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--laiton-vif); color: var(--nuit); display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--serif); overflow: hidden; }
.ep-wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-wa-ident { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ep-wa-ident strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-wa-statut { font-size: 12.5px; color: #c9d3e6; }
.ep-wa-statut::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 6px; vertical-align: 1px; }
.ep-wa-fermer { flex: none; background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ep-wa-corps { flex: 1; overflow-y: auto; padding: 16px; background: var(--wa-fond); }
.ep-wa-bulle { position: relative; background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 12px 18px; max-width: 92%; font-size: 14.5px; line-height: 1.45; color: var(--texte); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.ep-wa-bulle p { margin: 0; }
.ep-wa-heure { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--gris); }
.ep-wa-consigne { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--gris); }
.ep-wa-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-wa-puce { border: 1px solid #c9d8cf; background: #fff; color: var(--texte); border-radius: 16px; padding: 6px 11px; font: 500 13px/1.25 var(--sans); cursor: pointer; text-align: left; }
.ep-wa-puce:hover { border-color: var(--wa); }
.ep-wa-puce[aria-checked="true"] { background: var(--wa); border-color: var(--wa); color: #fff; }
.ep-wa-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: #f6f6f6; border-top: 1px solid #e6e6e6; margin: 0; }
.ep-wa-saisie textarea { flex: 1; resize: none; border: 1px solid #dcdcdc; border-radius: 20px; padding: 10px 14px; font: 15px/1.35 var(--sans); max-height: 120px; background: #fff; color: var(--texte); }
.ep-wa-saisie textarea:focus { outline: none; border-color: var(--wa); }
.ep-wa-envoyer { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ep-wa-envoyer:hover { background: var(--wa-fonce); }
.ep-wa-note { margin: 0; padding: 6px 12px 10px; background: #f6f6f6; font-size: 11.5px; color: var(--gris); }
.ep-wa-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 600px) {
	.ep-wa { right: 14px; bottom: 14px; }
	.ep-wa-libelle { display: none; }
	.ep-wa-bouton { width: 56px; padding: 0; justify-content: center; }
	.ep-wa-fenetre { position: fixed; right: 12px; left: 12px; bottom: 84px; width: auto; }
}
@media print { .ep-wa { display: none; } }
