/* =============================================================
   Emilie Meunier — Maison Fontaine Immobilier
   Feuille de style du site. Charte identique au site de l'agence
   (Maisonfontaine/styles.css) : crème, marine, beige, marron ;
   Cormorant Garamond + Montserrat ; coins droits, filets de 1 px,
   aucune ombre. Aucun style en ligne dans les pages : compatible
   avec la CSP de l'agence (style-src 'self'). Les règles calculées
   (échelles DPE et GES) sont ajoutées à la fin de ce fichier par
   src/construire.py.
   ============================================================= */

/* ---- Polices (auto-hébergées, reprises du site de l'agence) ---- */
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:400 500;font-display:swap;
  src:url("../assets/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:400 500;font-display:swap;
  src:url("../assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:400 600;font-display:swap;
  src:url("../assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:400 600;font-display:swap;
  src:url("../assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:300 600;font-display:swap;
  src:url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:300 600;font-display:swap;
  src:url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* ---- Jetons (charte Maison Fontaine) --------------------------- */
:root{
  --navy:#012C4F;--navy-2:#00223D;--beige:#E6CCB3;--marron:#5D3D31;
  --cream:#F5EEE3;--cream-2:#FCFAF6;--sand:#F0E8DA;--text:#4A4038;--deco:#C9A98A;
  --serif:"Cormorant Garamond","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  --sans:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;
  --pad-x:clamp(20px,5vw,80px);
  --pad-y:clamp(56px,7vw,96px);
  --content:1200px;
  --gutter:max(var(--pad-x),calc((100% - var(--content)) / 2));
  /* rôles des couleurs. Deux blocs voisins n'ont jamais le même fond (crème, crème clair, sable). Sur un fond marine,
     le texte est beige (--btn-fg), comme sur le site de l'agence ; seul un grand titre y est crème. Ni blanc ni noir purs. */
  --bg:var(--cream);--alt:var(--cream-2);--sand-t:var(--sand);
  --ink:var(--navy);--txt:var(--text);--accent:var(--marron);--soft:#6B5E53;
  --line:rgba(1,44,79,.15);--strong:rgba(1,44,79,.25);--frame:rgba(1,44,79,.2);
  --btn-bg:var(--navy);--btn-fg:var(--beige);
  --fil:var(--navy);
}

/* ---- Base ------------------------------------------------------ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:16px;}
body{font-family:var(--sans);color:var(--txt);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden;}
img,svg{display:block;max-width:100%;}
img{height:auto;}
a{color:var(--ink);text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--accent);}
button,input,select,textarea{font:inherit;color:inherit;}
ul,ol{list-style:none;}
sup{font-size:.62em;line-height:0;}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
::selection{background:var(--navy);color:var(--beige);}
.em-skip{position:absolute;left:12px;top:-60px;z-index:100;padding:12px 18px;background:var(--navy);color:var(--beige);}
.em-skip:focus{top:12px;color:var(--beige);}
html:not([data-js]) .em-js-show{display:none!important;}
.em-ico{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}

/* ---- Sections -------------------------------------------------- */
.em-sec{position:relative;padding:var(--pad-y) var(--gutter);background:var(--bg);}
.em-sec--alt{background:var(--alt);}
.em-sec--sand{background:var(--sand-t);}

/* ---- Typographie ----------------------------------------------- */
.em-eyebrow{font-size:12px;letter-spacing:.26em;text-transform:uppercase;line-height:1.5;color:var(--accent);margin-bottom:16px;}
.em-h1{font-family:var(--serif);font-weight:400;color:var(--ink);font-size:clamp(42px,5.2vw,66px);line-height:1.04;letter-spacing:-.005em;}
.em-h2{font-family:var(--serif);font-weight:400;color:var(--ink);font-size:clamp(30px,3.4vw,40px);line-height:1.12;letter-spacing:-.005em;}
.em-h2--l{font-size:clamp(32px,3.8vw,48px);line-height:1.08;}
.em-h2--xl{font-size:clamp(36px,4.2vw,52px);line-height:1.06;}
.em-lead{font-size:clamp(15px,1.25vw,16px);line-height:1.85;color:var(--txt);max-width:62ch;}
.em-body{font-size:14.5px;line-height:1.8;color:var(--txt);}
.em-small{font-size:12.5px;line-height:1.65;color:var(--soft);}
.em-small a{color:var(--ink);border-bottom:1px solid currentColor;}
.em-it{font-style:italic;color:var(--accent);}
.em-it--bloc{display:inline-block;}          /* d'un seul tenant : « au Perreux-sur-Marne » passe à la ligne en entier, sans se couper à un trait d'union */
.em-num{font-family:var(--serif);font-size:24px;line-height:1.2;color:var(--deco);}
.em-shead{margin-bottom:clamp(32px,4vw,48px);display:flex;flex-direction:column;}
.em-shead .em-lead{margin-top:18px;}
.em-shead--center{align-items:center;text-align:center;}
.em-shead--center .em-lead{max-width:620px;}
.em-shead__note{margin-top:18px;}
.em-shead--split{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:28px 64px;flex-wrap:wrap;}
.em-shead--split > div:first-child{display:flex;flex-direction:column;}
.em-shead--split .em-lead{margin-top:16px;max-width:560px;}

/* ---- Boutons, liens, étiquettes -------------------------------- */
.em-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:0 28px;border-radius:2px;border:1px solid transparent;
  font-size:12.5px;font-weight:500;letter-spacing:.1em;white-space:nowrap;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease;}
.em-btn .em-ico{width:16px;height:16px;stroke-width:1.6;}
.em-btn--primary{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg);}
.em-btn--primary:hover{background:var(--navy-2);border-color:var(--navy-2);color:var(--beige);}
.em-btn--ghost{border-color:var(--ink);color:var(--ink);background:transparent;}
.em-btn--ghost:hover{background:var(--ink);color:var(--btn-fg);}
.em-btns{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;}
.em-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:12.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);white-space:nowrap;}
.em-link > span{padding-bottom:3px;border-bottom:1px solid currentColor;}
.em-link .em-ico{width:15px;height:15px;stroke-width:1.6;}
.em-link--btn{background:none;border:0;padding:0;cursor:pointer;}
.em-tag{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;background:var(--btn-bg);color:var(--btn-fg);font-size:11px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;line-height:1.2;}
.em-tag--light{background:var(--beige);color:var(--navy);}
.em-sold{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);}
.em-sold .em-ico{width:13px;height:13px;stroke-width:2;}
.em-stars{display:inline-flex;gap:3px;color:var(--accent);}
.em-stars svg{width:13px;height:13px;fill:currentColor;}
.em-frame{position:relative;border:1px solid var(--frame);padding:12px;background:var(--alt);}
.em-frame img{width:100%;object-fit:cover;}
.em-ph{position:relative;display:flex;align-items:center;justify-content:center;background:var(--sand-t);
  background-image:repeating-linear-gradient(135deg,transparent 0 14px,var(--line) 14px 15px);}
.em-ph > span:not(.em-tag){display:inline-flex;align-items:center;gap:10px;padding:8px 14px;background:var(--bg);border:1px solid var(--line);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);}
.em-chips{display:flex;flex-wrap:wrap;gap:8px;}
.em-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:2px;border:1px solid var(--strong);background:transparent;color:var(--ink);font-size:12px;font-weight:500;letter-spacing:.03em;cursor:pointer;}
.em-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--btn-fg);}
.em-chip:hover{border-color:var(--ink);}

/* ---- En-têtes --------------------------------------------------- */
.em-head{position:relative;z-index:20;background:var(--bg);}
.em-head--masthead{display:flex;flex-direction:column;align-items:center;padding:clamp(24px,4vw,44px) var(--pad-x) 30px;border-bottom:1px solid var(--line);}
.em-head__home{display:flex;}
.em-head__logo{height:clamp(92px,10vw,120px);width:auto;}
.em-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:8px clamp(18px,2.4vw,34px);margin-top:26px;font-size:12.5px;letter-spacing:.13em;text-transform:uppercase;}
.em-nav a{padding:4px 0 6px;color:var(--ink);background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 1px;transition:color .2s ease,background-size .3s ease;}
.em-nav a:hover,.em-nav a[aria-current="page"]{color:var(--accent);background-size:100% 1px;}
.em-burger{display:none;align-items:center;justify-content:center;width:48px;height:48px;border-radius:2px;border:1px solid var(--strong);background:transparent;color:var(--ink);cursor:pointer;}
.em-burger .em-ico{width:22px;height:22px;}
.em-head--masthead .em-burger{position:absolute;right:var(--pad-x);top:22px;}
/* le cadenas de l'espace d'administration, en haut à droite : montré aux seuls navigateurs déjà connectés (site.js) */
.em-head__admin{display:none;position:absolute;right:var(--pad-x);top:22px;align-items:center;justify-content:center;width:48px;height:48px;border-radius:2px;border:1px solid var(--strong);color:var(--ink);transition:background-color .2s ease,color .2s ease;}
.em-head__admin:hover{background:var(--ink);color:var(--btn-fg);}
.em-head__admin .em-ico{width:20px;height:20px;}
html[data-admin] .em-head__admin{display:inline-flex;}
.em-mobile{display:none;position:absolute;top:100%;left:0;right:0;z-index:40;flex-direction:column;padding:8px var(--pad-x) 24px;background:var(--bg);border-bottom:1px solid var(--line);}
.em-mobile.is-open{display:flex;}
.em-mobile a:not(.em-btn){padding:14px 0;font-size:13px;letter-spacing:.13em;text-transform:uppercase;border-bottom:1px solid var(--line);}
.em-mobile a[aria-current="page"]{color:var(--accent);}
.em-mobile a.em-mobile__tel{font-family:var(--serif);font-size:24px;letter-spacing:.02em;text-transform:none;}
.em-mobile .em-btn{margin-top:18px;}
.em-head--compact{padding-top:22px;padding-bottom:22px;}
.em-head--compact .em-nav{margin-top:18px;}
.em-brand{display:flex;align-items:center;gap:16px;color:var(--ink);}
.em-brand img{height:72px;width:auto;}
.em-brand__txt{display:flex;flex-direction:column;gap:3px;padding-left:16px;border-left:1px solid var(--line);}
.em-brand__name{font-family:var(--serif);font-size:22px;line-height:1.1;color:var(--ink);white-space:nowrap;}
.em-brand__role{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);white-space:nowrap;}

/* ---- Haut de page · portrait encadré ---------------------------- */
.em-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,64px);align-items:center;padding:clamp(48px,6vw,80px) var(--gutter) clamp(64px,7vw,96px);background:var(--bg);}
.em-hero__text{display:flex;flex-direction:column;align-items:flex-start;}
.em-hero .em-eyebrow{letter-spacing:.3em;margin-bottom:26px;}
.em-hero .em-h1{margin-bottom:26px;}
.em-hero .em-lead{max-width:460px;margin-bottom:26px;}
.em-hero__info{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 32px;align-items:center;width:100%;max-width:520px;padding:24px 0;margin-bottom:38px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.em-hero__label{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);margin-bottom:10px;}
.em-hero__days{font-family:var(--serif);font-size:20px;line-height:1.35;color:var(--ink);margin-bottom:6px;}
.em-hero__tel{font-family:var(--serif);font-size:clamp(26px,2.3vw,30px);line-height:1.2;letter-spacing:.02em;white-space:nowrap;}
.em-hero__note{font-size:13px;line-height:1.6;}
.em-hero__media{position:relative;justify-self:end;width:min(520px,100%);}
.em-frame__in{overflow:hidden;}
.em-hero__media .em-frame img{aspect-ratio:4/5;object-position:50% 75%;}          /* le portrait au bureau : Emilie et son ordinateur, peu de mur au-dessus */
.em-hero__seal{position:absolute;bottom:-34px;left:-34px;width:120px;height:auto;padding:10px;border-radius:50%;background:var(--bg);}

/* ---- Chiffres ---------------------------------------------------- */
.em-figsWrap{padding:0 var(--gutter) clamp(56px,6vw,80px);background:var(--bg);}
.em-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);}
.em-fig{display:flex;flex-direction:column;gap:10px;padding:30px 28px;background:var(--bg);}
.em-fig__big{display:flex;align-items:baseline;gap:12px;font-family:var(--serif);font-size:clamp(40px,4vw,52px);line-height:1;color:var(--ink);white-space:nowrap;}
.em-fig__big .em-stars svg{width:15px;height:15px;}
.em-fig__small{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);}
.em-fig__small a{color:var(--accent);}

/* ---- À propos ---------------------------------------------------- */
.em-about{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(40px,6vw,80px);align-items:start;}
.em-about__head{display:flex;flex-direction:column;}
.em-about__head .em-h2{margin-bottom:32px;}
.em-about__fig .em-frame img,.em-ville__fig .em-frame img{aspect-ratio:4/3;}
/* « À propos » : le portrait fond blanc, en hauteur, cadré sur le visage */
.em-about__fig--portrait{max-width:440px;}
.em-about__fig--portrait .em-frame img{aspect-ratio:1;object-position:50% 72%;}
.em-about__fig figcaption,.em-ville__fig figcaption{margin-top:14px;display:flex;flex-direction:column;gap:3px;}
.em-about__fig figcaption b,.em-ville__fig figcaption b{font-weight:400;font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);}
.em-about__fig figcaption span,.em-ville__fig figcaption span{font-family:var(--serif);font-style:italic;font-size:17px;color:var(--ink);}
.em-about__bloc + .em-about__bloc{margin-top:26px;}
.em-about__bloc .em-lead + .em-lead{margin-top:12px;}
.em-about__text .em-lead span{color:var(--ink);}
/* le texte est long : seul le début est affiché, la suite se déplie (sans JavaScript, tout est affiché) */
.em-about__plus{margin-top:18px;}
.em-about__suite{margin-top:26px;}
.em-about__suite:focus{outline:none;}
.em-about__moins{margin-top:14px;}
[data-js] .em-about__suite{display:none;}
[data-js] .em-about__suite.is-open{display:block;}
[data-js] .em-about__plus[aria-expanded="true"]{display:none;}
.em-about__fin{margin-top:38px;max-width:25em;font-family:var(--serif);font-style:italic;font-size:clamp(24px,2.3vw,30px);line-height:1.3;color:var(--ink);}
.em-about__fin::before{content:"";display:block;width:28px;height:1px;margin-bottom:22px;background:var(--accent);}
.em-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:clamp(44px,5vw,64px);border-top:1px solid var(--line);}
/* texte déplié : le titre et la photo restent à l'écran pendant la lecture */
@media (min-width:901px) and (min-height:700px){
  .em-about__head{position:sticky;top:32px;}
}
.em-value{padding:26px 24px 0;border-right:1px solid var(--line);}
.em-value:first-child{padding-left:0;}
.em-value:last-child{padding-right:0;border-right:0;}
.em-value .em-num{display:block;margin-bottom:10px;}
.em-value h3{font-family:var(--serif);font-weight:400;font-size:22px;line-height:1.2;color:var(--ink);margin-bottom:8px;}
.em-value p{max-width:38ch;font-size:13.5px;line-height:1.7;}

/* ---- Mes biens · au fil de la Marne (escales, cadre des annonces) -- */
.em-esc{padding:var(--pad-y) 0 clamp(56px,6vw,88px);background:var(--alt);}
.em-esc__head{padding:0 var(--gutter);display:flex;align-items:flex-end;justify-content:space-between;gap:32px 64px;flex-wrap:wrap;}
.em-esc__head > div{display:flex;flex-direction:column;}
.em-esc__head .em-lead{margin-top:18px;max-width:560px;}
/* deux onglets en tête du bloc (ceux de la page des biens) : le fil des biens à vendre, ou celui des ventes */
.em-esc__head > .em-onglets{display:inline-flex;flex-direction:row;margin-top:0;}
[data-js] [data-fils="a-vendre"] [data-fil="vendu"],[data-js] [data-fils="vendu"] [data-fil="a-vendre"]{display:none;}
.em-esc__chips{padding:40px var(--gutter) 8px;}
.em-esc__chips--centre{justify-content:center;}
.em-band{position:relative;aspect-ratio:1440/270;max-height:320px;margin:0 auto;max-width:1706px;}
.em-band > svg{position:absolute;inset:0;width:100%;height:100%;}
.em-band__halo1{fill:none;stroke:var(--fil);stroke-opacity:.05;stroke-width:46;stroke-linecap:round;}
.em-band__halo2{fill:none;stroke:var(--fil);stroke-opacity:.1;stroke-width:16;stroke-linecap:round;}
.em-band__line{fill:none;stroke:var(--fil);stroke-width:2.5;stroke-linecap:round;}
.em-sq{fill:var(--alt);stroke:var(--ink);stroke-width:2;transform-box:fill-box;transform-origin:center;transition:transform .3s ease,fill .3s ease;}
.em-sq.is-on{fill:var(--ink);transform:scale(1.375);}
.em-sq--none{stroke:var(--soft);stroke-width:1.6;stroke-dasharray:3 3;}
.em-sqring{fill:none;stroke:var(--ink);stroke-width:1;stroke-opacity:0;transition:stroke-opacity .3s ease;}
.em-sqring.is-on{stroke-opacity:.45;}
.em-band__amont,.em-band__aval{position:absolute;top:13%;display:inline-flex;align-items:center;gap:8px;font-family:var(--serif);font-size:16px;font-style:italic;color:var(--soft);}
.em-band__amont{left:2.8%;}
.em-band__aval{right:2.8%;}
.em-band__aval .em-ico{width:16px;height:16px;stroke-width:1.4;}
.em-stops{position:absolute;left:3.82%;right:3.82%;top:58.5%;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));}
.em-stop{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:4px 2px;text-align:center;background:none;border:0;cursor:pointer;color:var(--ink);}
.em-stop__sq{display:none;}
.em-stop__name{font-size:13.5px;font-weight:500;line-height:1.5;padding:0 8px;}
.em-stop__nb{font-family:var(--serif);font-size:17px;font-style:italic;color:var(--soft);}
.em-stop[aria-pressed="true"] .em-stop__name{background:var(--ink);color:var(--btn-fg);}
.em-stop[aria-pressed="true"] .em-stop__nb{color:var(--ink);}
.em-stop:hover .em-stop__name{text-decoration:underline;text-underline-offset:3px;}
.em-stop:disabled{cursor:default;}
.em-stop:disabled:hover .em-stop__name{text-decoration:none;}
/* le cadre des annonces : les biens à vendre en tête (bandeau marine, toujours affiché), puis les ventes de l'escale choisie */
.em-cadre{margin:0 var(--gutter);background:var(--sand-t);border:1px solid var(--line);}
.em-panels{padding:32px;}
.em-panel{display:flex;flex-direction:column;gap:24px;}
html:not([data-js]) .em-panel--all{display:none;}
html:not([data-js]) .em-panel + .em-panel{margin-top:32px;padding-top:32px;border-top:1px solid var(--line);}
html:not([data-js]) .em-panel--all + .em-panel{margin-top:0;padding-top:0;border-top:0;}
[data-js] .em-panels--tabs .em-panel{display:none;}
[data-js] .em-panels--tabs .em-panel.is-active{display:flex;}
.em-panel__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;}
.em-panel__head > div{display:flex;flex-direction:column;gap:8px;}
.em-panel__kicker{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);}
.em-panel__title{font-family:var(--serif);font-weight:400;font-size:clamp(30px,3vw,38px);line-height:1.05;color:var(--ink);}
.em-panel__count{font-size:14.5px;color:var(--soft);}
.em-panel__count b{font-weight:600;color:var(--ink);}
/* une escale dont la commune a sa page (villes.py) : le lien qui y mène, sous le compte */
.em-panel__head > .em-panel__droite{align-items:flex-end;gap:2px;}
.em-minis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.em-mini{display:grid;grid-template-columns:184px minmax(0,1fr);gap:22px;height:100%;padding:12px;background:var(--bg);border:1px solid var(--line);color:var(--ink);}
.em-mini img{width:100%;height:132px;object-fit:cover;}
.em-mini__body{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0;padding-right:12px;}
.em-mini__top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--soft);}
.em-mini__title{font-family:var(--serif);font-weight:400;font-size:23px;line-height:1.15;color:var(--ink);}
.em-mini__text{font-size:13.5px;line-height:1.6;color:var(--txt);}
.em-mini:hover .em-mini__title{color:var(--accent);}
.em-others{margin:28px var(--gutter) 0;padding-top:24px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px 20px;font-size:14.5px;line-height:1.5;color:var(--soft);}
.em-others b{font-weight:600;color:var(--ink);}
/* « tout voir » et « hors bords de Marne » dans la liste des escales : sur grand écran, ce sont les boutons du dessus */
.em-stops__plus{display:none;}
/* le fil des biens à vendre : grandes cartes, dans le même cadre sable que les ventes */
.em-vcards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
/* la pagination d'un panneau d'escale : cinq biens par page (site.js) ; sans JavaScript, tous les biens se suivent */
.em-vcards > li[hidden]{display:none;}
.em-pages{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;}
.em-page{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border-radius:2px;border:1px solid var(--strong);background:transparent;color:var(--ink);font-size:13px;font-weight:500;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease;}
.em-page:hover{border-color:var(--ink);}
.em-page[aria-current="page"]{background:var(--ink);border-color:var(--ink);color:var(--btn-fg);}
.em-page:disabled{opacity:.35;cursor:default;}
.em-page:disabled:hover{border-color:var(--strong);}
.em-page .em-ico{width:16px;height:16px;}
.em-vcards--3{grid-template-columns:repeat(3,minmax(0,1fr));}
.em-vcards--2{grid-template-columns:repeat(2,minmax(0,1fr));}
.em-vcards--1{grid-template-columns:minmax(0,1fr);}
.em-vcard{display:flex;flex-direction:column;height:100%;background:var(--bg);border:1px solid var(--line);color:var(--ink);}
.em-vcard__media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--sand-t);}
.em-vcard__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
.em-vcard:hover .em-vcard__media img{transform:scale(1.03);}
.em-vcard__media .em-tag{position:absolute;top:12px;left:12px;}
.em-vcard__body{display:flex;flex-direction:column;flex:1;gap:8px;padding:16px 18px 18px;}
.em-vcard__place{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;line-height:1.4;color:var(--accent);}
.em-vcard__title{font-family:var(--serif);font-size:23px;line-height:1.12;color:var(--ink);transition:color .2s ease;}
.em-vcard:hover .em-vcard__title{color:var(--accent);}
.em-vcard__specs{font-size:12.5px;line-height:1.5;color:var(--soft);}
.em-vcard__text{display:none;font-size:14px;line-height:1.7;color:var(--txt);}
.em-vcard__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line);}
.em-vcard__price{font-family:var(--serif);font-size:26px;line-height:1;color:var(--ink);white-space:nowrap;}
.em-vcard__foot .em-ico{width:16px;height:16px;stroke-width:1.5;color:var(--accent);transition:transform .25s ease;}
.em-vcard:hover .em-vcard__foot .em-ico{transform:translateX(4px);}
/* une escale d'un ou deux biens : la carte s'allonge (photo à gauche, accroche) plutôt que de laisser le panneau vide */
.em-vcards--1 .em-vcard,.em-vcards--2 .em-vcard{flex-direction:row;}
.em-vcards--1 .em-vcard__media{flex:0 0 46%;aspect-ratio:auto;min-height:300px;}
.em-vcards--2 .em-vcard__media{flex:0 0 44%;aspect-ratio:auto;min-height:230px;}
.em-vcards--1 .em-vcard__body{justify-content:center;gap:12px;padding:32px clamp(24px,4vw,56px);}
.em-vcards--1 .em-vcard__title{font-size:clamp(28px,2.8vw,36px);}
.em-vcards--1 .em-vcard__text{display:block;max-width:52ch;}
.em-vcards--1 .em-vcard__foot{margin-top:8px;}
.em-vcards--1 .em-vcard__price{font-size:32px;}

/* ---- Vidéo : l'affiche encadrée entre deux images du film -------- */
.em-vid .em-shead{max-width:760px;margin-left:auto;margin-right:auto;}
.em-vid .em-shead .em-lead{max-width:560px;}
.em-vid__row{display:flex;align-items:center;justify-content:center;gap:clamp(20px,5.4vw,76px);}
.em-vid__fig{flex:0 1 280px;min-width:0;}
.em-vid__fig .em-frame{padding:10px;}
.em-vid__main{flex:0 1 360px;min-width:0;display:flex;flex-direction:column;align-items:center;}
.em-vid .em-frame img{aspect-ratio:9/16;}
.em-vid__poster{align-self:stretch;border-color:var(--strong);transition:border-color .2s ease;}
.em-vid__cap{white-space:nowrap;}
.em-vid__poster:hover,.em-vid__poster.is-playing{border-color:var(--ink);}
.em-vid__screen{position:relative;background:var(--navy);}
.em-vid__video{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;}
.em-vid__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:84px;height:84px;padding:0;border:0;border-radius:50%;background:var(--navy);color:var(--beige);cursor:pointer;transition:background .2s ease;}
.em-vid__play .em-ico{width:28px;height:28px;}
.em-vid__play:hover,.em-vid__screen:hover .em-vid__play{background:var(--navy-2);}
.is-playing .em-vid__play,.is-playing .em-vid__time{display:none;}
.em-vid__time{position:absolute;right:14px;bottom:14px;padding:5px 10px;border-radius:2px;background:rgba(0,34,61,.82);font-size:12px;letter-spacing:.06em;line-height:1.4;color:var(--beige);}
.em-vid__fig figcaption,.em-vid__cap{margin-top:16px;text-align:center;font-size:12px;letter-spacing:.14em;line-height:1.5;text-transform:uppercase;color:var(--accent);}
.em-vid__foot{display:flex;align-items:center;justify-content:space-between;gap:28px 64px;flex-wrap:wrap;margin-top:clamp(40px,5vw,56px);padding-top:40px;border-top:1px solid var(--line);}
.em-insta{display:inline-flex;align-items:center;gap:18px;color:var(--ink);}
.em-insta__ico{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:64px;height:64px;background:var(--navy);color:var(--beige);transition:background .2s ease;}
.em-insta__ico .em-ico{width:26px;height:26px;stroke-width:1.4;}
.em-insta:hover .em-insta__ico{background:var(--navy-2);}
.em-insta__txt{display:flex;flex-direction:column;gap:3px;min-width:0;}
.em-insta__txt b{font-weight:400;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);}
.em-insta__txt span{font-family:var(--serif);font-size:clamp(24px,2.4vw,30px);line-height:1.15;color:var(--ink);overflow-wrap:anywhere;transition:color .2s ease;}
.em-insta:hover .em-insta__txt span{color:var(--accent);}
.em-insta__go{width:20px;height:20px;margin-left:4px;stroke-width:1.4;color:var(--accent);}
.em-vid__quote{display:flex;flex-direction:column;align-items:flex-end;gap:12px;margin-left:auto;text-align:right;}
.em-vid__quote blockquote{font-family:var(--serif);font-style:italic;font-size:clamp(30px,3.4vw,42px);line-height:1.1;color:var(--ink);}
.em-vid__quote figcaption{display:flex;align-items:center;gap:12px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);}
.em-steps{max-width:560px;}
.em-step{display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;padding:20px 0;border-top:1px solid var(--line);}
.em-step:last-child{border-bottom:1px solid var(--line);}
.em-step h3{font-family:var(--serif);font-weight:400;font-size:21px;color:var(--ink);margin-bottom:4px;}
.em-step p{font-size:14px;line-height:1.7;}

/* ---- Cartes d'annonce -------------------------------------------- */
.em-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;}
.em-card{position:relative;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);}
.em-card[hidden],.em-row[hidden]{display:none;}
.em-sec--alt .em-card{background:var(--bg);}
.em-card__media{position:relative;aspect-ratio:4/3;overflow:hidden;background-color:var(--sand-t);}
.em-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
.em-card:hover .em-card__media img{transform:scale(1.03);}
.em-card__media .em-tag{position:absolute;top:16px;left:16px;}
.em-card__body{flex-grow:1;display:flex;flex-direction:column;gap:8px;padding:22px 24px 24px;}
.em-card__place{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);}
.em-card__title{font-family:var(--serif);font-weight:400;font-size:25px;line-height:1.15;color:var(--ink);}
.em-card__title a{color:var(--ink);}
.em-card__title a::after{content:"";position:absolute;inset:0;}
.em-card:hover .em-card__title a{color:var(--accent);}
.em-card__specs{font-size:13px;font-weight:500;color:var(--ink);}
.em-card__text{font-size:13.5px;line-height:1.7;}
.em-card__foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px;color:var(--soft);}
.em-card__price{font-family:var(--serif);font-size:26px;color:var(--ink);}

/* ---- Listes à coches (atouts d'un bien) --------------------------- */
.em-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px;font-size:13.5px;color:var(--ink);}
.em-checks li{display:flex;align-items:center;gap:8px;}
.em-checks .em-ico{width:14px;height:14px;stroke-width:1.8;color:var(--accent);}

/* ---- Avis ---------------------------------------------------------- */
.em-note{display:inline-flex;align-items:center;gap:10px;font-size:12.5px;letter-spacing:.08em;color:var(--ink);}
.em-note b{font-family:var(--serif);font-weight:400;font-size:24px;letter-spacing:0;}
.em-bigq{max-width:940px;margin:0 auto 56px;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center;}
.em-bigq blockquote{display:flex;flex-direction:column;align-items:center;gap:20px;}
.em-bigq blockquote p:first-child{font-family:var(--serif);font-style:italic;font-size:clamp(30px,3.6vw,46px);line-height:1.18;color:var(--ink);}
/* sous l'avis, les pages des autres communes */
.em-ville__autres{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:clamp(40px,5vw,56px);padding-top:28px;border-top:1px solid var(--line);text-align:center;font-size:14.5px;line-height:1.9;}
.em-ville__autres b{font-weight:400;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);}
.em-ville__autres a{white-space:nowrap;border-bottom:1px solid currentColor;}
.em-bigq--seule{margin-bottom:0;}          /* la citation ferme le bloc (page d'une commune) : pas de cartes d'avis dessous */
.em-signed{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink);}
.em-signed::before{content:"";display:block;width:28px;height:1px;background:var(--accent);}
.em-signed i{font-family:var(--serif);font-size:17px;letter-spacing:.04em;text-transform:none;color:var(--txt);}
.em-quotes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;align-items:start;}
.em-quote{border:1px solid var(--line);padding:34px 28px;background:var(--bg);}
.em-quote__top{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.em-quote__mark{font-family:var(--serif);font-size:48px;line-height:.6;color:var(--deco);}
.em-quote blockquote{margin:14px 0 20px;font-size:14.5px;line-height:1.85;}
.em-quote figcaption{font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink);}
.em-quote figcaption span{letter-spacing:.04em;text-transform:none;color:var(--soft);}

/* ---- Contact + formulaires ---------------------------------------- */
.em-c1{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:clamp(40px,6vw,88px);align-items:start;}
.em-c1 .em-h2{margin-bottom:22px;}
.em-c1 .em-lead{margin-bottom:30px;}
.em-lines{border-top:1px solid var(--line);}
.em-lines li{border-bottom:1px solid var(--line);}
.em-lines a{display:grid;grid-template-columns:52px minmax(0,1fr) 22px;gap:18px;align-items:center;min-height:84px;color:var(--ink);}
.em-lines a:hover .em-lines__txt span{color:var(--accent);}
.em-lines__ico{display:flex;align-items:center;justify-content:center;width:52px;height:52px;background:var(--navy);color:var(--beige);transition:background .2s ease;}
.em-lines a:hover .em-lines__ico{background:var(--navy-2);}
.em-lines__ico .em-ico{width:20px;height:20px;stroke-width:1.4;}
.em-lines__txt{display:flex;flex-direction:column;gap:2px;min-width:0;}
.em-lines__txt b{font-weight:400;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);}
.em-lines__txt span{font-family:var(--serif);font-size:clamp(22px,2.2vw,28px);line-height:1.2;color:var(--ink);overflow-wrap:anywhere;}
.em-lines__go{width:20px;height:20px;stroke-width:1.4;color:var(--accent);}
.em-form{display:flex;flex-direction:column;gap:18px;padding:clamp(24px,3vw,40px);background:var(--alt);border:1px solid var(--line);}
.em-form__title{font-family:var(--serif);font-size:30px;line-height:1.1;color:var(--ink);}
.em-form__title--2{margin-top:8px;}
.em-form__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.em-field{display:flex;flex-direction:column;gap:8px;}
.em-field label,.em-fieldset legend{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink);}
.em-input{width:100%;height:52px;padding:0 16px;border-radius:2px;border:1px solid var(--strong);background:var(--bg);font-size:15px;color:var(--ink);}
textarea.em-input{height:auto;min-height:108px;padding:14px 16px;line-height:1.5;resize:vertical;}
select.em-input{padding:0 44px 0 16px;cursor:pointer;appearance:none;-webkit-appearance:none;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23012C4F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/14px 14px;text-overflow:ellipsis;}
select.em-input option{background:var(--bg);color:var(--ink);}
.em-input:focus{outline:none;border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);}
/* champ rempli par le navigateur : il garde le fond du site (le navigateur impose sinon un fond bleu pâle) */
.em-input:-webkit-autofill{-webkit-text-fill-color:var(--ink);box-shadow:inset 0 0 0 100px var(--bg);}
.em-input:-webkit-autofill:focus{box-shadow:inset 0 0 0 1px var(--ink),inset 0 0 0 100px var(--bg);}
.em-fieldset{border:0;min-width:0;}
.em-fieldset legend{padding:0 0 8px;}
.em-choices{display:flex;flex-wrap:wrap;gap:8px;}
.em-choice{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 16px;border-radius:2px;border:1px solid var(--strong);font-size:13.5px;color:var(--ink);cursor:pointer;}
.em-choice:has(input:checked){border-color:var(--ink);background:var(--sand-t);}
.em-radio{appearance:none;-webkit-appearance:none;flex-shrink:0;width:16px;height:16px;margin:0;border:1px solid var(--ink);border-radius:0;background:var(--bg);cursor:pointer;}
.em-radio:checked{background:var(--ink);box-shadow:inset 0 0 0 3px var(--bg);}
.em-form__foot{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-top:4px;}
.em-form__foot p{max-width:280px;font-size:12px;line-height:1.6;color:var(--soft);}
.em-form__foot a{border-bottom:1px solid currentColor;}
.em-form .em-btn:disabled{opacity:.6;cursor:progress;}
/* un champ obligatoire (attribut required) porte un astérisque */
.em-field:has(:required) > label::after{content:" *";color:var(--accent);}
/* champ piège : hors de l'écran et hors du parcours au clavier. Un visiteur ne le voit pas ; un robot le remplit, et
   contact.php écarte alors l'envoi. */
.em-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
/* l'issue de l'envoi (site.js) : la confirmation, ou ce qui n'a pas marché ; sans JavaScript, le second est affiché d'emblée */
.em-form__ok,.em-form__ko{display:none;padding:14px 16px;border:1px solid var(--ink);font-size:14px;line-height:1.6;color:var(--ink);background:var(--bg);}
.em-form__ko{border-color:var(--accent);color:var(--accent);}
.em-form__ok a,.em-form__ko a{border-bottom:1px solid currentColor;}
.em-form.is-sent .em-form__ok,.em-form.is-ko .em-form__ko,noscript .em-form__ko{display:block;}

/* ---- Pied de page ------------------------------------------------- */
.em-foot{background:var(--navy);color:var(--beige);padding:64px var(--gutter) 40px;}
.em-foot a{color:var(--beige);}
.em-foot a:hover{color:var(--cream-2);}
.em-foot__top{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;gap:48px;padding-bottom:40px;border-bottom:1px solid rgba(230,204,179,.2);}
/* avec la colonne « Mon secteur » (les pages des communes) : quatre colonnes, deux sur un écran moyen */
.em-foot__top--4{grid-template-columns:repeat(4,auto);}
.em-foot__secteur{display:flex;flex-direction:column;gap:12px;font-size:14px;line-height:1.5;}
.em-foot__logo{height:104px;width:auto;margin-bottom:20px;}
.em-foot__blurb{max-width:280px;font-size:13.5px;line-height:1.8;color:rgba(230,204,179,.8);}
.em-foot__label{margin-bottom:18px;font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(230,204,179,.8);}
.em-foot__addr{font-style:normal;display:flex;flex-direction:column;gap:14px;font-size:14px;line-height:1.5;}
.em-foot__line{display:flex;align-items:center;gap:12px;}
.em-foot__line--top{align-items:flex-start;}
.em-foot__line .em-ico{stroke:rgba(230,204,179,.6);stroke-width:1.4;}
.em-foot__tel{font-family:var(--serif);font-size:22px;letter-spacing:.02em;white-space:nowrap;}
/* les réseaux d'Emilie : trois pictos dans un carré au filet beige */
.em-foot__reseaux{display:flex;gap:10px;margin-top:22px;}
.em-foot__reseaux a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid rgba(230,204,179,.35);transition:border-color .2s ease,background .2s ease;}
.em-foot__reseaux a:hover{border-color:var(--beige);background:var(--navy-2);color:var(--beige);}
.em-foot__reseaux .em-ico{width:20px;height:20px;stroke-width:1.4;}
.em-foot__legal{display:flex;flex-direction:column;align-items:center;gap:12px;padding-top:24px;text-align:center;font-size:11.5px;line-height:1.8;letter-spacing:.02em;color:rgba(230,204,179,.8);}
.em-foot__legal p{max-width:980px;}
.em-foot__links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;letter-spacing:.08em;}
.em-foot__links a{color:rgba(230,204,179,.8);}
.em-foot__links .em-foot__admin{display:none;}          /* montré aux seuls navigateurs déjà connectés à l'admin (site.js) */
html[data-admin] .em-foot__links .em-foot__admin{display:inline;}
.em-foot__credit a{border-bottom:1px solid currentColor;}

/* ---- Fiche d'un bien ---------------------------------------------- */
.em-crumbs{padding:22px var(--gutter);font-size:12px;letter-spacing:.06em;color:var(--soft);background:var(--bg);}
.em-crumbs a{color:var(--soft);}
.em-crumbs [aria-current]{color:var(--ink);}
.em-dhero{padding:8px var(--gutter) 0;background:var(--bg);}
.em-dhero__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 48px;flex-wrap:wrap;padding-bottom:28px;}
.em-dhero__head > div:first-child{display:flex;flex-direction:column;gap:12px;}
.em-dhero__meta{display:flex;flex-direction:column;align-items:flex-end;gap:12px;}
.em-dhero__top{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--soft);}
.em-dhero__place{font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);}
/* la commune mène à sa page, ou à la liste des biens filtrée sur elle (fiche) ; à sa page, si elle en a une (liste) */
.em-dhero__place a,.em-row__place a{padding-bottom:2px;color:inherit;border-bottom:1px solid currentColor;}
.em-dhero__place a:hover,.em-row__place a:hover{color:var(--ink);}
.em-dhero__title{font-family:var(--serif);font-weight:400;font-size:clamp(34px,3.6vw,52px);line-height:1.05;color:var(--ink);}
.em-dhero__specs{font-size:14px;font-weight:500;color:var(--ink);}
.em-dhero__grid{position:relative;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;height:clamp(380px,40vw,540px);}
.em-dhero__big{grid-row:1 / span 2;}
.em-dhero__grid img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.em-dhero__grid .em-ph > span{padding:4px 8px;font-size:10.5px;}
.em-dhero__all{position:absolute;right:16px;bottom:16px;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px;border-radius:2px;background:var(--navy);font-size:12px;font-weight:500;letter-spacing:.08em;color:var(--beige);}
.em-dhero__all:hover{background:var(--navy-2);color:var(--beige);}
.em-dhero__all .em-ico{width:16px;height:16px;stroke-width:1.4;}
.em-dhero__grid a[data-zoom],.em-pair a,.em-gallery a{display:block;overflow:hidden;background:var(--sand-t);cursor:zoom-in;}
.em-dhero__grid a:hover img,.em-pair a:hover img,.em-gallery a:hover img{transform:scale(1.03);}
/* une seule photo publiée pour ce bien : pas de mosaïque à trous, la photo à gauche et le titre à côté (sur petit écran,
   l'ordre habituel : le titre, puis la photo) */
@media (min-width:901px){
  .em-dhero--seule{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:clamp(32px,5vw,72px);align-items:center;}
  .em-dhero--seule .em-dhero__head{order:2;flex-direction:column;align-items:flex-start;padding-bottom:0;}
  .em-dhero--seule .em-dhero__meta{align-items:flex-start;}
  .em-dhero--seule .em-dhero__grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);}
  .em-dhero--seule .em-dhero__big{grid-row:1;}
}
.em-dbody{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:clamp(40px,5vw,72px);align-items:start;padding:56px var(--gutter) var(--pad-y);background:var(--bg);}
.em-dmain,.em-dside{display:flex;flex-direction:column;gap:48px;min-width:0;}
/* chiffres clés : chaque case commence à son bord gauche et trace elle-même ses filets, à gauche dans la marge de la case
   précédente, et dessous dans l'interligne. Ceux qui sortent du cadre (première colonne, dernière ligne) sont coupés : les
   cases restent alignées et séparées quand elles passent sur deux lignes. Aucun filet n'en recouvre un autre, leur
   couleur étant transparente. */
.em-dfigs{--fig-x:22px;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));row-gap:1px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;}
.em-dfigs > div{position:relative;display:flex;flex-direction:column;gap:4px;padding:18px calc(2 * var(--fig-x) + 1px) 18px 0;}
.em-dfigs > div::before,.em-dfigs > div::after{content:"";position:absolute;background:var(--line);pointer-events:none;}
.em-dfigs > div::before{top:0;bottom:0;left:calc(-1 * var(--fig-x) - 1px);width:1px;}
.em-dfigs > div::after{top:100%;left:0;right:0;height:1px;}
.em-dfigs b{font-family:var(--serif);font-weight:400;font-size:30px;line-height:1.1;color:var(--ink);white-space:nowrap;}
.em-dfigs span{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);}
.em-dsec{display:flex;flex-direction:column;gap:14px;}
.em-dsec h2{font-family:var(--serif);font-weight:400;font-size:30px;line-height:1.15;color:var(--ink);}
.em-dsec > p{max-width:68ch;font-size:15.5px;line-height:1.85;}
.em-dsec > p.em-small{font-size:12.5px;}
.em-dsec__chapo{font-family:var(--serif);font-style:italic;font-size:22px!important;line-height:1.45!important;color:var(--txt);}
.em-dl2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;border-bottom:1px solid var(--line);}
.em-dl2 > div,.em-dl1 > div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line);font-size:13.5px;}
.em-dl2 dt,.em-dl1 dt{color:var(--soft);}
.em-dl2 dd,.em-dl1 dd{font-weight:500;color:var(--ink);text-align:right;}
.em-dl1{border-bottom:1px solid var(--line);}
.em-atouts{display:flex;flex-direction:column;font-size:14px;color:var(--ink);}
.em-atouts li{display:flex;align-items:center;gap:10px;padding:8px 0;}
.em-atouts .em-ico{width:15px;height:15px;stroke-width:1.8;color:var(--accent);}
.em-dpes{display:flex;flex-direction:column;gap:24px;}
.em-dpe{display:flex;flex-direction:column;gap:10px;}
.em-dpe figcaption{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);}
.em-dpe ol{display:flex;flex-direction:column;gap:4px;}
/* la valeur suit la barre de la classe ; si la place manque (longues barres E, F, G), elle passe dessous au lieu de déborder */
.em-dpe li{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-height:20px;}
.em-dpe li span{display:flex;align-items:center;flex-shrink:0;height:20px;padding-left:8px;font-size:11px;font-weight:600;}
.em-dpe li.is-on{margin:2px 0;}
.em-dpe li.is-on span{height:30px;font-size:15px;outline:2px solid var(--ink);outline-offset:2px;}
.em-dpe li em{font-style:normal;font-size:12.5px;font-weight:500;color:var(--ink);white-space:nowrap;}
.em-dpe__nonsoumis{display:inline-flex;align-self:flex-start;padding:12px 16px;border:1px solid var(--line);font-size:14px;color:var(--ink);}
.em-card-contact{display:flex;flex-direction:column;gap:22px;padding:30px;background:var(--alt);border:1px solid var(--line);}
.em-card-contact__state{display:flex;flex-direction:column;gap:10px;align-items:flex-start;}
.em-card-contact__state p{font-size:13px;line-height:1.6;}
.em-card-contact__state .em-card-contact__big{margin-top:6px;font-family:var(--serif);font-size:30px;line-height:1.15;color:var(--ink);}
.em-card-contact__state .em-card-contact__price{margin-top:10px;font-family:var(--serif);font-size:44px;line-height:1;color:var(--ink);}
.em-card-contact__bareme{font-size:12px;color:var(--ink);border-bottom:1px solid currentColor;}
.em-card-contact__who{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:center;padding-top:20px;border-top:1px solid var(--line);}
.em-card-contact__who img{width:72px;height:90px;object-fit:cover;object-position:50% 20%;}
.em-card-contact__who div{display:flex;flex-direction:column;gap:3px;}
.em-card-contact__who b{font-family:var(--serif);font-weight:400;font-size:22px;color:var(--ink);}
.em-card-contact__who span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);}
.em-card-contact__who a{font-family:var(--serif);font-size:20px;}
.em-card-contact .em-btns{flex-direction:column;align-items:stretch;gap:10px;}
.em-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px;}
.em-pair img{width:100%;height:clamp(260px,32vw,460px);object-fit:cover;transition:transform .5s ease;}
.em-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.em-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .5s ease;}
.em-lightbox{margin:auto;width:min(1200px,94vw);max-width:none;max-height:none;padding:0;border:0;background:transparent;overflow:visible;}
.em-lightbox::backdrop{background:rgba(1,20,36,.92);}
.em-lightbox figure{display:flex;flex-direction:column;gap:12px;}
.em-lightbox img{width:100%;max-height:82vh;object-fit:contain;}
.em-lightbox figcaption{text-align:center;font-size:12.5px;letter-spacing:.1em;color:var(--beige);}
.em-lightbox__nav{position:absolute;top:calc(50% - 24px);width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:0;border-radius:2px;background:var(--cream);color:var(--navy);cursor:pointer;}
.em-lightbox__nav .em-ico{width:22px;height:22px;stroke-width:1.6;}
.em-lightbox__prev{left:8px;}
.em-lightbox__next{right:8px;}
.em-lightbox__close{position:absolute;right:0;top:-56px;width:48px;height:48px;border:0;border-radius:2px;background:var(--cream);color:var(--navy);cursor:pointer;font-size:26px;line-height:1;}

/* ---- Liste des biens ----------------------------------------------- */
.em-listHead{padding:clamp(40px,5vw,72px) var(--gutter) 0;background:var(--bg);}
.em-listHead .em-lead{margin-top:18px;max-width:640px;}
/* deux onglets : la page s'ouvre sur les biens à vendre, les ventes s'affichent à la demande */
.em-onglets{display:inline-flex;margin-top:28px;border:1px solid var(--strong);}
.em-onglet{display:inline-flex;align-items:baseline;gap:10px;min-height:54px;padding:0 26px;background:transparent;border:0;font-size:12.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;line-height:54px;color:var(--ink);cursor:pointer;transition:background-color .2s ease,color .2s ease;}
.em-onglet + .em-onglet{border-left:1px solid var(--strong);}
.em-onglet b{font-family:var(--serif);font-weight:400;font-size:21px;letter-spacing:0;color:var(--accent);transition:color .2s ease;}
.em-onglet[aria-pressed="true"]{background:var(--ink);color:var(--btn-fg);}
.em-onglet[aria-pressed="true"] b{color:var(--cream);}
.em-onglet:not([aria-pressed="true"]):hover{background:var(--sand-t);}
.em-onglets + .em-toolbar{margin-top:24px;}
/* avant que le script n'ait filtré la liste, seules les lignes de l'onglet demandé sont affichées (data-vue : site.js) */
[data-js][data-vue="a-vendre"] [data-liste]:not([data-pret]) > [data-statut="vendu"],
[data-js][data-vue="vendu"] [data-liste]:not([data-pret]) > [data-statut="a-vendre"]{display:none;}
.em-toolbar{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-top:28px;padding:24px 0 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.em-toolbar .em-link--btn{margin-left:auto;}
.em-toolbar .em-field{flex:1 1 170px;max-width:300px;}
.em-toolbar .em-field--l{flex:1.4 1 250px;max-width:380px;}
.em-toolbar .em-field label{color:var(--accent);}
.em-toolbar .em-input{height:48px;background-color:transparent;transition:border-color .2s ease,background-color .2s ease,color .2s ease;}
.em-toolbar .em-input:hover{border-color:var(--ink);}
.em-toolbar .em-input.is-actif{background-color:var(--ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6CCB3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");border-color:var(--ink);color:var(--btn-fg);}
.em-count-line{margin:20px 0;font-size:13px;color:var(--soft);}
.em-empty{display:none;margin-top:28px;padding:32px;border:1px dashed var(--strong);text-align:center;font-size:14.5px;color:var(--soft);}
.em-empty.is-on{display:block;}
.em-listBody{padding:0 var(--gutter) var(--pad-y);background:var(--bg);}
.em-listHead + .em-listBody{padding-top:8px;}
.em-rows{border-bottom:1px solid var(--line);}
.em-row{position:relative;display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:clamp(24px,4vw,48px);padding:32px 0;border-top:1px solid var(--line);}
.em-row__media{position:relative;height:280px;overflow:hidden;background-color:var(--sand-t);}
.em-row__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
.em-row:hover .em-row__media img{transform:scale(1.03);}
.em-row__media .em-tag{position:absolute;top:16px;left:16px;}
.em-row__body{display:flex;flex-direction:column;gap:14px;padding-top:4px;min-width:0;}
.em-row__top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;font-size:12px;color:var(--soft);}
.em-row__place{font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);}
.em-row__place a{position:relative;z-index:1;}          /* au-dessus du lien du titre, qui couvre toute la ligne */
.em-row__title{font-family:var(--serif);font-weight:400;font-size:clamp(28px,2.6vw,34px);line-height:1.1;color:var(--ink);}
.em-row__title a{color:var(--ink);}
.em-row__title a::after{content:"";position:absolute;inset:0;}
.em-row:hover .em-row__title a{color:var(--accent);}
.em-chipsInfo{display:flex;flex-wrap:wrap;gap:8px;}
.em-chipsInfo span{padding:7px 12px;border:1px solid var(--line);font-size:12.5px;color:var(--ink);}
.em-row__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;border-top:1px solid var(--line);font-size:12.5px;color:var(--soft);}
.em-row--gabarit .em-row__media{border:1px solid var(--ink);}

/* ---- Estimation, mentions légales ---------------------------------- */
.em-estPage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,600px);gap:clamp(40px,6vw,88px);align-items:start;}
.em-estPage__h1{font-family:var(--serif);font-weight:400;font-size:clamp(46px,5vw,64px);line-height:1.02;color:var(--ink);margin-bottom:22px;}
.em-estPage__h1 em{font-style:italic;color:var(--accent);}
.em-estPage .em-lead{margin-bottom:34px;}
.em-estPage__alt{margin-top:30px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);}
.em-estPage__tel{display:inline-block;margin-top:8px;font-family:var(--serif);font-size:clamp(36px,4vw,44px);line-height:1;white-space:nowrap;color:var(--ink);}
.em-estPage__secteur{margin-top:8px;max-width:520px;}
.em-estPage__secteur a,.em-estPage__secteur span{white-space:nowrap;}
.em-estPage__secteur a{border-bottom:1px solid currentColor;}
.em-404{min-height:46vh;}
.em-404 .em-lead{margin:20px 0 34px;}
.em-legal__h1{margin-bottom:40px;}
.em-legal{border-bottom:1px solid var(--line);}
.em-legal__sec{display:grid;grid-template-columns:300px minmax(0,1fr);gap:clamp(24px,4vw,56px);padding:32px 0;border-top:1px solid var(--line);scroll-margin-top:24px;}
.em-legal__sec h2{font-family:var(--serif);font-weight:400;font-size:28px;line-height:1.2;color:var(--ink);}
.em-legal__sec p{margin-bottom:12px;max-width:72ch;font-size:15px;line-height:1.85;}
.em-legal__sec a{border-bottom:1px solid currentColor;}

/* ---- Page d'une commune (villes.py) --------------------------------- */
/* le haut : le titre, le chapeau, les chiffres et les boutons à gauche, une photo de la commune à droite ; les blocs
   suivants reprennent les cartes, les vignettes, les étapes et la citation des autres pages */
.em-ville{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,5vw,72px);align-items:center;padding:8px var(--gutter) var(--pad-y);background:var(--bg);}
.em-ville__text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;}
.em-ville--texte{grid-template-columns:minmax(0,760px);}          /* commune sans photo : le texte seul */
.em-ville .em-h1{font-size:clamp(38px,4.4vw,58px);margin-bottom:24px;}
.em-ville .em-lead{margin-bottom:30px;}
.em-ville .em-dfigs{order:0;width:100%;margin-bottom:34px;}          /* order : sur une fiche, les chiffres changent de place sur petit écran ; pas ici */
/* les quartiers : le texte à gauche, une ligne par quartier à droite (son nom, ce que ses annonces sont devenues, une phrase) */
.em-qrt{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(40px,6vw,80px);align-items:start;}
.em-qrt .em-h2{margin-bottom:24px;}
.em-qrt .em-lead + .em-lead{margin-top:14px;}
.em-qrt__liste{border-bottom:1px solid var(--line);}
.em-qrt__liste > div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 24px;align-items:baseline;padding:16px 0;border-top:1px solid var(--line);}
.em-qrt__liste dt{font-family:var(--serif);font-size:23px;line-height:1.2;color:var(--ink);}
.em-qrt__liste dd{grid-column:1 / -1;font-size:14px;line-height:1.7;}
.em-qrt__liste .em-qrt__nb{grid-column:2;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);white-space:nowrap;}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width:1240px){
  .em-dbody{grid-template-columns:minmax(0,1fr) minmax(0,340px);}
  .em-foot__top--4{grid-template-columns:repeat(2,auto);}
  .em-mini{grid-template-columns:140px minmax(0,1fr);gap:16px;}
  .em-mini img{height:110px;}
  .em-mini__text{display:none;}
}
@media (max-width:1100px){
  .em-vcards,.em-vcards--3{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:900px){
  .em-head--masthead .em-nav{display:none;}
  .em-head--masthead .em-burger{display:inline-flex;}
  .em-head__admin{right:calc(var(--pad-x) + 58px);}          /* à gauche du bouton du menu */
  .em-head--masthead{align-items:flex-start;padding-top:16px;padding-bottom:16px;}
  .em-head__logo{height:72px;}
  .em-head--masthead .em-burger,.em-head__admin{top:50%;transform:translateY(-50%);}
  .em-brand__txt{padding-left:12px;}
  .em-brand__name{font-size:19px;}
  .em-hero,.em-about,.em-c1,.em-estPage,.em-dbody,.em-ville,.em-qrt{grid-template-columns:minmax(0,1fr);}
  .em-hero__media{justify-self:stretch;width:100%;max-width:520px;margin-bottom:24px;}
  .em-hero__seal{width:92px;left:auto;right:-8px;bottom:-26px;}
  .em-figs{grid-template-columns:repeat(2,minmax(0,1fr));}
  .em-values{grid-template-columns:1fr;}
  .em-value,.em-value:first-child,.em-value:last-child{padding:22px 0;border-right:0;border-bottom:1px solid var(--line);}
  .em-cards,.em-quotes{grid-template-columns:repeat(2,minmax(0,1fr));}
  .em-minis{grid-template-columns:1fr;}
  .em-foot__top{grid-template-columns:1fr;gap:32px;}
  .em-foot__legal{align-items:stretch;text-align:left;}
  .em-foot__links{justify-content:flex-start;}
  /* escales : liste verticale le long d'un filet */
  .em-band{aspect-ratio:auto;max-height:none;padding:24px var(--gutter) 8px;}
  .em-band > svg,.em-band__amont,.em-band__aval{display:none;}
  .em-stops{position:relative;left:auto;right:auto;top:auto;display:flex;flex-direction:column;}
  /* on ne garde que les escales qui ont un bien, précédées de « tout voir » et suivies de « hors bords de Marne » */
  .em-stops__plus{display:block;}
  .em-stops .is-vide{display:none;}
  .em-vcards--2{grid-template-columns:minmax(0,1fr);}
  .em-vcards--1 .em-vcard__media{min-height:240px;}
  .em-stops::before{content:"";position:absolute;left:10px;top:24px;bottom:24px;width:2px;background:var(--ink);opacity:.25;}
  .em-stop{position:relative;flex-direction:row;align-items:center;gap:16px;min-height:52px;text-align:left;}
  .em-stop__sq{display:block;width:22px;height:22px;flex-shrink:0;padding:4px;}
  .em-stop__sq::before{content:"";display:block;width:100%;height:100%;background:var(--alt);border:2px solid var(--ink);}
  .em-stop[aria-pressed="true"] .em-stop__sq{padding:0;}
  .em-stop[aria-pressed="true"] .em-stop__sq::before{background:var(--ink);}
  .em-stop:disabled .em-stop__sq::before{border:1.5px dashed var(--soft);}
  .em-stop__name{padding:2px 8px;}
  .em-stop__nb{margin-left:auto;}
  .em-esc__chips{display:none;}
  .em-pair img{height:260px;}
  .em-dhero__meta{align-items:flex-start;}
  .em-dhero__grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto;height:auto;}
  .em-dhero__big{grid-column:1 / -1;grid-row:1;aspect-ratio:4/3;}
  .em-dhero__grid > :not(.em-dhero__big):not(.em-dhero__all){aspect-ratio:1;}
  .em-dhero__all{top:12px;bottom:auto;right:12px;}
  .em-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
  .em-row{grid-template-columns:minmax(0,1fr);}
  /* fiche : le module de contact juste après les chiffres clés, atouts et énergie en fin de fiche */
  .em-dbody{display:flex;flex-direction:column;align-items:stretch;gap:40px;}
  .em-dmain,.em-dside{display:contents;}
  .em-dfigs{order:1;}
  .em-card-contact{order:2;}
  .em-dsec{order:3;}
  .em-legal__sec{grid-template-columns:1fr;}
  .em-vid__row{gap:16px;}
  .em-vid__fig .em-frame,.em-vid__poster{padding:7px;}
  .em-vid__play{width:64px;height:64px;}
  .em-vid__time{right:10px;bottom:10px;}
  .em-vid__fig figcaption,.em-vid__cap{font-size:11px;letter-spacing:.1em;}
  .em-vid__cap{white-space:normal;}
}
@media (max-width:620px){
  .em-hero__info,.em-form__row,.em-dl2{grid-template-columns:minmax(0,1fr);}
  .em-cards,.em-quotes{grid-template-columns:minmax(0,1fr);}
  .em-figs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .em-fig{padding:22px 18px;}
  .em-mini{grid-template-columns:112px minmax(0,1fr);gap:14px;padding:10px;}
  .em-mini img{height:96px;}
  .em-mini__title{font-size:20px;}
  .em-panels{padding:22px 16px;}
  .em-panel__head > .em-panel__droite{align-items:flex-start;}
  .em-esc__head > .em-onglets{display:flex;width:100%;}
  /* les grandes cartes repassent en ligne (photo à gauche) : huit cartes empilées feraient un écran de trop */
  .em-vcards,.em-vcards--3,.em-vcards--2{grid-template-columns:minmax(0,1fr);gap:12px;}
  .em-vcards .em-vcard{flex-direction:row;}
  .em-vcards .em-vcard__media{flex:0 0 116px;aspect-ratio:auto;min-height:104px;}
  .em-vcards .em-vcard__body{gap:5px;padding:10px 12px;}
  .em-vcards .em-vcard__title{font-size:19px;}
  .em-vcards .em-vcard__text{display:none;}
  .em-vcards .em-vcard__foot{margin-top:auto;padding-top:6px;border-top:0;}
  .em-vcards .em-vcard__price{font-size:22px;}
  .em-btns{flex-direction:column;align-items:stretch;align-self:stretch;}
  .em-btns .em-btn{width:100%;}
  .em-mini__top > span:last-child{display:none;}
  .em-lines a{grid-template-columns:44px minmax(0,1fr) 18px;gap:14px;min-height:70px;}
  .em-lines__ico{width:44px;height:44px;}
  .em-dfigs{--fig-x:12px;}
  .em-dfigs > div{padding-top:14px;padding-bottom:14px;}
  .em-dfigs b{font-size:24px;}
  .em-checks{grid-template-columns:minmax(0,1fr);}
  .em-row__media,.em-row__media.em-ph{height:220px;}
  .em-brand__txt{display:none;}
  .em-form{padding:22px 18px;}
  .em-card-contact{padding:22px 20px;}
  .em-vid__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px;align-items:start;}
  .em-vid__main{grid-column:1 / -1;order:-1;width:min(100%,300px);justify-self:center;}
  .em-vid__foot{flex-direction:column;align-items:stretch;padding-top:32px;}
  .em-vid__quote{align-items:flex-start;margin-left:0;text-align:left;}
  .em-toolbar .em-field{flex:1 1 calc(50% - 8px);max-width:none;}
  .em-toolbar .em-field--l{flex-basis:100%;}
  .em-onglets{display:flex;}
  .em-onglet{flex:1;justify-content:center;padding:0 12px;}
}

/* ---- Carrés des communes cliquables, Le Perreux « ma ville » ---- */
.em-band [data-sq]{cursor:pointer;}
.em-sqring{fill:transparent;}
.em-sqring:hover{stroke-opacity:.25;}
.em-sq--home{stroke:var(--accent);}

/* =============================================================
   Mouvement. Tout est facultatif : sans JavaScript (pas de
   data-js sur <html>) ou en mouvement réduit, rien n'est masqué
   et rien ne bouge.
   ============================================================= */
@keyframes em-monte{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:none;}}
@keyframes em-fondu{from{opacity:0;}to{opacity:1;}}
@keyframes em-pose{from{transform:scale(1.07);}to{transform:none;}}
/* petits gestes au survol : la flèche avance, le soulignement du menu se déroule */
.em-link .em-ico,.em-lines__go,.em-insta__go{transition:transform .25s ease;}
.em-link:hover .em-ico{transform:translateX(4px);}
.em-link--bas:hover .em-ico{transform:translateY(3px);}
.em-link--haut:hover .em-ico{transform:translateY(-3px);}
.em-lines a:hover .em-lines__go,.em-insta:hover .em-insta__go{transform:translate(3px,-3px);}
@media (prefers-reduced-motion:no-preference){
  /* haut de page : le texte monte ligne après ligne, le portrait se pose dans son cadre */
  .em-hero__text > *{animation:em-monte .8s cubic-bezier(.2,.65,.25,1) both;}
  .em-hero__text > :nth-child(2){animation-delay:.08s;}
  .em-hero__text > :nth-child(3){animation-delay:.16s;}
  .em-hero__text > :nth-child(4){animation-delay:.24s;}
  .em-hero__text > :nth-child(5){animation-delay:.32s;}
  .em-hero__media .em-frame img{animation:em-pose 1.6s cubic-bezier(.2,.65,.25,1) both;}
  .em-hero__seal{animation:em-fondu .8s .6s both;}
  /* à l'arrivée par l'intro (plus bas), le haut de page attend que l'écran s'ouvre */
  [data-intro="play"]{--intro-d:1.5s;}
  [data-intro="play"] .em-hero__text > *{animation-delay:var(--intro-d);}
  [data-intro="play"] .em-hero__text > :nth-child(2){animation-delay:calc(var(--intro-d) + .08s);}
  [data-intro="play"] .em-hero__text > :nth-child(3){animation-delay:calc(var(--intro-d) + .16s);}
  [data-intro="play"] .em-hero__text > :nth-child(4){animation-delay:calc(var(--intro-d) + .24s);}
  [data-intro="play"] .em-hero__text > :nth-child(5){animation-delay:calc(var(--intro-d) + .32s);}
  [data-intro="play"] .em-hero__media .em-frame img{animation-delay:var(--intro-d);}
  [data-intro="play"] .em-hero__seal{animation-delay:calc(var(--intro-d) + .6s);}
  /* entrées au défilement : data-rv (outils.rv) masque l'élément, site.js ajoute .is-in quand il arrive à l'écran ;
     data-rv="1", "2" : les voisins d'un même rang entrent l'un après l'autre */
  [data-js] [data-rv]{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.65,.25,1);}
  [data-js] [data-rv="1"]{transition-delay:.12s;}
  [data-js] [data-rv="2"]{transition-delay:.24s;}
  [data-js] [data-rv].is-in{opacity:1;transform:none;}
  /* au fil de la Marne : le fil se trace de l'amont vers l'aval, chaque escale (data-i) apparaît quand il l'atteint */
  [data-js] [data-rv="trace"]{opacity:1;transform:none;}
  [data-js] [data-rv="trace"] .em-band__line{stroke-dasharray:1 2;stroke-dashoffset:1.01;transition:stroke-dashoffset 1.8s linear;}
  [data-js] [data-rv="trace"] .em-band__halo1,[data-js] [data-rv="trace"] .em-band__halo2{opacity:0;transition:opacity 1.2s ease 1s;}
  [data-js] [data-rv="trace"] [data-i],[data-js] [data-rv="trace"] .em-band__amont,[data-js] [data-rv="trace"] .em-band__aval{opacity:0;
    transition:opacity .5s ease var(--d,0s),transform .3s ease,fill .3s ease,stroke-opacity .3s ease;}
  [data-js] [data-rv="trace"].is-in .em-band__line{stroke-dashoffset:0;}
  [data-js] [data-rv="trace"].is-in .em-band__halo1,[data-js] [data-rv="trace"].is-in .em-band__halo2,
  [data-js] [data-rv="trace"].is-in [data-i],[data-js] [data-rv="trace"].is-in .em-band__amont,[data-js] [data-rv="trace"].is-in .em-band__aval{opacity:1;}
  .em-band [data-i]{--d:calc(var(--i) * .237s - .05s);}
  .em-band [data-i="1"]{--i:1;}
  .em-band [data-i="2"]{--i:2;}
  .em-band [data-i="3"]{--i:3;}
  .em-band [data-i="4"]{--i:4;}
  .em-band [data-i="5"]{--i:5;}
  .em-band [data-i="6"]{--i:6;}
  .em-band [data-i="7"]{--i:7;}
  .em-band__aval{--d:1.8s;}
  /* l'escale choisie : son panneau entre en fondu */
  [data-js] .em-panels--tabs .em-panel.is-active{animation:em-monte .5s cubic-bezier(.2,.65,.25,1) both;}
}
@media (prefers-reduced-motion:no-preference) and (max-width:900px){
  .em-band [data-i]{--d:calc(var(--i) * .07s);}      /* escales en liste : elles se suivent de près */
}
@media print{
  [data-js] .em-about__suite{display:block!important;}
  .em-about__plus,.em-about__moins{display:none!important;}
  [data-js] [data-rv],[data-js] [data-rv] *{opacity:1!important;transform:none!important;}
  [data-js] [data-rv="trace"] .em-band__line{stroke-dashoffset:0!important;}
  .em-intro{display:none!important;}
}

/* =============================================================
   Intro « Au fil de la Marne » (accueil). À l'arrivée sur le
   site, un écran sable porte le nom d'Emilie ; le fil de la Marne
   le traverse, puis l'écran s'ouvre le long de la rivière, une
   rive vers le haut, l'autre vers le bas. Elle ne joue que si
   site.js a posé data-intro="play" sur <html> avant le premier
   rendu : une fois par visite, jamais sans JavaScript ni en
   mouvement réduit. La page est déjà là, derrière ; l'intro ne
   capte aucun clic, et site.js la retire quand elle a fini.
   ============================================================= */
.em-intro{position:fixed;inset:0;z-index:60;overflow:hidden;pointer-events:none;}
html:not([data-intro="play"]) .em-intro,.em-intro[hidden]{display:none;}
.em-intro__rive{position:absolute;inset:0;width:100%;height:100%;}
.em-intro__berge{fill:var(--sand);stroke:var(--sand);stroke-width:2;}      /* le contour fait se recouvrir les deux rives */
.em-intro__fil{fill:none;stroke:var(--fil);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:1 2;stroke-dashoffset:1.01;}
/* le nom au-dessus de la rivière, le métier au-dessous */
.em-intro__nom,.em-intro__role{position:absolute;left:0;right:0;padding:0 24px;text-align:center;}
.em-intro__nom{bottom:calc(50% + clamp(34px,4vw,54px));font-family:var(--serif);font-size:clamp(40px,6.2vw,80px);line-height:1.04;letter-spacing:-.005em;white-space:nowrap;color:var(--ink);}
.em-intro__role{top:calc(50% + clamp(36px,3.4vw,48px));font-size:clamp(10.5px,.95vw,12px);letter-spacing:.3em;text-transform:uppercase;line-height:1.6;color:var(--accent);}
/* 2,2 s en tout (em-intro-vie) : le fil se trace, le nom et le métier entrent puis s'effacent, les rives s'écartent.
   Le haut de page entre un peu après le départ des rives (--intro-d, plus haut). */
[data-intro="play"] .em-intro{animation:em-intro-vie 2.2s linear both;}
[data-intro="play"] .em-intro__fil{animation:em-intro-trace .95s cubic-bezier(.45,0,.2,1) .12s forwards;}
[data-intro="play"] .em-intro__nom{animation:em-monte .55s cubic-bezier(.2,.65,.25,1) .2s both,em-intro-sort .25s ease 1.2s forwards;}
[data-intro="play"] .em-intro__role{animation:em-fondu .45s ease .45s both,em-intro-sort .25s ease 1.2s forwards;}
[data-intro="play"] .em-intro__haut{animation:em-intro-haut .8s cubic-bezier(.76,0,.24,1) 1.35s forwards;}
[data-intro="play"] .em-intro__bas{animation:em-intro-bas .8s cubic-bezier(.76,0,.24,1) 1.35s forwards;}
@keyframes em-intro-vie{from{visibility:visible;}to{visibility:visible;}}
@keyframes em-intro-trace{to{stroke-dashoffset:0;}}
@keyframes em-intro-sort{to{opacity:0;visibility:hidden;}}
@keyframes em-intro-haut{to{transform:translateY(-500px);}}      /* unités du schéma : chaque rive sort de l'écran */
@keyframes em-intro-bas{to{transform:translateY(500px);}}

/* =============================================================
   Mouvement réduit : ni animation, ni transition, ni défilement animé
   ============================================================= */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation:none!important;transition:none!important;}
  .em-intro{display:none!important;}
}

/* =============================================================
   Calculé par src/construire.py (échelles DPE et GES)
   ============================================================= */
.em-dpe--dpe li:nth-child(1) span{width:34%;background:#009C6D;color:#1B1B1B}
.em-dpe--dpe li:nth-child(2) span{width:45%;background:#52B153;color:#1B1B1B}
.em-dpe--dpe li:nth-child(3) span{width:56%;background:#A5CC74;color:#1B1B1B}
.em-dpe--dpe li:nth-child(4) span{width:67%;background:#F4E70F;color:#1B1B1B}
.em-dpe--dpe li:nth-child(5) span{width:78%;background:#F0B50F;color:#1B1B1B}
.em-dpe--dpe li:nth-child(6) span{width:89%;background:#EB8235;color:#1B1B1B}
.em-dpe--dpe li:nth-child(7) span{width:100%;background:#D7221F;color:#FFFFFF}
.em-dpe--ges li:nth-child(1) span{width:34%;background:#A4DBF8;color:#1B1B1B}
.em-dpe--ges li:nth-child(2) span{width:45%;background:#8CB4D3;color:#1B1B1B}
.em-dpe--ges li:nth-child(3) span{width:56%;background:#7792B1;color:#1B1B1B}
.em-dpe--ges li:nth-child(4) span{width:67%;background:#5F6F8F;color:#FFFFFF}
.em-dpe--ges li:nth-child(5) span{width:78%;background:#4A4D6E;color:#FFFFFF}
.em-dpe--ges li:nth-child(6) span{width:89%;background:#3A3150;color:#FFFFFF}
.em-dpe--ges li:nth-child(7) span{width:100%;background:#281B35;color:#FFFFFF}
