/* HG Portfolio — final clean */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,300..700;1,300..700&family=Instrument+Serif:ital@0;1&display=swap');

:root{--ease:cubic-bezier(.2,.7,.2,1);--fast:.22s;--med:.38s}
html[data-theme="light"]{--bg:#F0EBE3;--bg2:#E7DFD4;--fg:#111;--muted:#958b81;--muted2:#615951;--rule:rgba(17,17,17,.10);--rule2:rgba(17,17,17,.24);--overlay:rgba(10,10,10,.94)}
html[data-theme="dark"]{--bg:#111;--bg2:#1a1a1a;--fg:#F0EBE3;--muted:rgba(240,235,227,.44);--muted2:rgba(240,235,227,.68);--rule:rgba(240,235,227,.11);--rule2:rgba(240,235,227,.25);--overlay:rgba(8,8,8,.96)}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);color:var(--fg);caret-color:transparent;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;scroll-behavior:auto}
body{background:var(--bg);color:var(--fg);font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;overflow-x:hidden;transition:background .28s var(--ease),color .28s var(--ease)}
input,textarea,select,[contenteditable="true"]{caret-color:auto}
img,video{display:block;max-width:100%;border-radius:0!important}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;padding:0}
a{color:inherit;text-decoration:none}
ul{list-style:none}
::selection{background:var(--fg);color:var(--bg)}

.serif{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-weight:400}.mono{font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:520;color:var(--muted2)}
.fade-in{animation:fadeIn .36s var(--ease)}@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Header */
.hg-header{position:sticky;top:0;z-index:100;background:var(--bg);padding:14px 28px;border-bottom:1px solid transparent;transition:background .28s var(--ease),border-color .28s var(--ease)}
.hg-header.scrolled{border-bottom-color:var(--rule)}.hg-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.hg-logo{font-size:14px;font-weight:650;letter-spacing:.01em;display:inline-flex;align-items:baseline;gap:1px}.hg-logo-star{font-family:'Instrument Serif',serif;font-style:italic;font-size:18px;color:#C8443A}.hg-nav ul{display:flex;gap:24px}.hg-nav a{font-size:13px;color:var(--muted);transition:color var(--fast);position:relative;padding-bottom:3px}.hg-nav a:hover,.hg-nav .current-menu-item a{color:var(--fg);font-weight:520}.hg-nav .current-menu-item a::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--fg)}.hg-header-right{display:flex;align-items:center;gap:12px}.hg-theme-btn{width:30px;height:30px;border-radius:0;border:1px solid var(--rule2);display:flex;align-items:center;justify-content:center;font-size:14px;transition:background var(--fast),color var(--fast),border-color var(--fast)}.hg-theme-btn:hover{background:var(--fg);color:var(--bg);border-color:var(--fg)}.hg-burger{display:none;flex-direction:column;gap:5px}.hg-burger span{display:block;width:22px;height:1.5px;background:var(--fg)}
.hg-mobile-panel{position:fixed;inset:0;z-index:200;background:var(--bg);color:var(--fg);padding:16px 28px;display:flex;flex-direction:column;transition:transform .32s var(--ease);transform:translateX(100%)}.hg-mobile-panel.open{transform:translateX(0)}.hg-mobile-top{display:flex;justify-content:space-between;align-items:baseline}.hg-mobile-nav{margin-top:52px}.hg-mobile-nav a{font-family:'Instrument Serif',serif;font-style:italic;font-size:clamp(44px,10vw,72px);line-height:1.05;color:var(--muted);display:block;transition:color var(--fast)}.hg-mobile-nav .current-menu-item a,.hg-mobile-nav a:hover{color:var(--fg)}

/* Home */
.hg-home-hero{position:sticky;top:56px;z-index:50;background:var(--bg);padding:24px 28px 16px;transition:background .28s var(--ease)}.hg-h1{font-family:'Instrument Sans',system-ui,sans-serif;font-style:normal;font-size:clamp(44px,8vw,108px);line-height:.93;letter-spacing:-.045em;font-weight:680;font-variation-settings:'wght' 680;text-rendering:optimizeLegibility;transition:font-weight .32s var(--ease),font-variation-settings .32s var(--ease),opacity .25s var(--ease),letter-spacing .32s var(--ease)}.hg-h1.morphed{font-family:'Instrument Sans',system-ui,sans-serif;font-style:normal;font-weight:300;font-variation-settings:'wght' 300;letter-spacing:-.055em}.hg-filters{display:flex;gap:22px;flex-wrap:wrap;margin-top:10px}.hg-filter{font-size:13px;color:var(--muted);position:relative;padding-bottom:3px;transition:color var(--fast);display:inline-flex;gap:5px;align-items:baseline}.hg-filter sup{font-size:10px;color:var(--muted)}.hg-filter::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--fg);transform:scaleX(0);transform-origin:left;transition:transform .28s var(--ease)}.hg-filter.active{color:var(--fg);font-weight:520}.hg-filter.active::after{transform:scaleX(1)}
.hg-projects{padding:20px 0 52px}.hg-project-card{transition:opacity .38s var(--ease);padding-bottom:34px;margin-bottom:34px;border-bottom:1px solid var(--rule)}.hg-project-card.dimmed{opacity:.14}.hg-project-card.hidden{display:none}.hg-strip-wrap{overflow:hidden}.hg-strip{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:0 28px;cursor:grab;user-select:none;-webkit-user-select:none;scrollbar-width:none;height:260px;align-items:stretch;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y}.hg-strip::-webkit-scrollbar{display:none}.hg-strip.dragging{cursor:grabbing}.hg-tile{flex:0 0 auto;height:100%;aspect-ratio:var(--ratio,16/9);border-radius:0;overflow:hidden;background:var(--bg2);position:relative;cursor:grab;-webkit-tap-highlight-color:transparent}.hg-tile img,.hg-tile video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .56s var(--ease);pointer-events:none!important;-webkit-user-drag:none!important;user-select:none!important;-webkit-user-select:none!important}.hg-tile:hover img,.hg-tile:hover video{transform:scale(1.035)}.hg-strip.dragging,.hg-strip.dragging .hg-tile,.is-dragging-strip .hg-tile{cursor:grabbing!important}.is-dragging-strip{user-select:none;-webkit-user-select:none}.hg-tile-placeholder{flex:0 0 auto;height:100%;aspect-ratio:var(--ratio,16/9);background:var(--bg2);display:flex;flex-direction:column;padding:14px;justify-content:space-between}.hg-video-play{position:absolute;left:10px;bottom:10px;width:34px;height:34px;border:1px solid rgba(240,235,227,.55);background:rgba(17,17,17,.34);color:#F0EBE3;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1;pointer-events:none;backdrop-filter:blur(5px)}
.hg-project-meta{padding:12px 28px 0;display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap}.hg-project-mainline{display:inline-flex;align-items:baseline;gap:10px}.hg-project-client{font-size:15px;font-weight:520}.hg-project-sep{color:var(--muted2)}.hg-project-name{font-size:20px;letter-spacing:-.01em;font-weight:400;font-variation-settings:'wght' 400;text-rendering:optimizeLegibility;transition:opacity .28s var(--ease),letter-spacing .28s var(--ease),font-weight .28s var(--ease),font-variation-settings .28s var(--ease)}.hg-project-mainline:hover .hg-project-name{font-weight:300;font-variation-settings:'wght' 300;letter-spacing:-.02em;opacity:.86}.hg-project-side{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.hg-project-cat{font-size:12px;color:var(--muted2)}.hg-project-year{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.hg-acc-toggle{display:inline-flex;align-items:center;gap:14px;padding:0 0 0 16px;border-left:1px solid var(--rule2);min-height:28px;color:var(--fg);transition:color var(--fast)}.hg-acc-toggle-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted2)}.hg-acc-toggle-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--rule2);font-size:16px;line-height:1;transition:transform .3s var(--ease),background var(--fast),color var(--fast),border-color var(--fast);color:var(--fg)}.hg-acc-toggle:hover .hg-acc-toggle-icon{background:var(--fg);color:var(--bg);border-color:var(--fg)}.hg-acc-toggle.open .hg-acc-toggle-icon{transform:rotate(45deg)}.hg-accordion{overflow:hidden;max-height:0;opacity:0;padding:0 28px;transition:max-height .44s var(--ease),opacity .28s var(--ease)}.hg-accordion.open{max-height:560px;opacity:1}.hg-accordion-inner{padding:22px 0 10px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr) minmax(160px,.8fr);gap:20px 26px;align-items:start;border-top:1px solid var(--rule2)}.hg-acc-block,.hg-services-wrap,.hg-acc-cta{display:flex;flex-direction:column;gap:9px}.hg-acc-block .mono,.hg-services-wrap .mono,.hg-acc-cta .mono{font-size:10px;letter-spacing:.12em;color:var(--muted)}.hg-acc-blurb{font-size:15px;line-height:1.72;color:var(--fg);max-width:64ch}.hg-services-wrap,.hg-acc-cta{border-left:1px solid var(--rule);padding-left:18px}.hg-services{display:flex;flex-wrap:wrap;gap:0 4px;align-content:start}.hg-service-tag{padding:0;border:none;background:none;color:var(--muted2);font-size:13px;line-height:1.65;text-transform:none;letter-spacing:0}.hg-service-tag:not(:last-child)::after{content:', ';white-space:pre}.hg-view-btn{display:inline-flex;align-items:center;gap:6px;padding:0 0 3px;border-bottom:1px solid var(--fg);font-size:13px;letter-spacing:.04em;font-weight:520;transition:opacity var(--fast),transform var(--fast)}.hg-view-btn:hover{opacity:.72;transform:translateX(2px)}.hg-view-btn .serif{font-size:18px;line-height:1}

/* Single */
.hg-single{min-height:100vh}.hg-single-head{padding:52px 28px 44px;max-width:1280px;margin:0 auto}.hg-back{font-size:12px;color:var(--muted2);display:inline-flex;align-items:center;gap:8px;margin-bottom:36px;transition:color var(--fast)}.hg-back:hover{color:var(--fg)}.hg-single-title{font-size:clamp(48px,9vw,130px);line-height:.92;letter-spacing:-.04em;font-weight:520;max-width:14ch;margin-bottom:36px;text-wrap:balance}.hg-single-metas{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:22px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:18px 0}.hg-single-meta-item p:first-child{margin-bottom:5px}.hg-single-body{padding:8px 28px 50px;max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:40px;align-items:start}@media(min-width:900px){.hg-single-body{grid-template-columns:1fr 1fr;gap:56px}}.hg-hero-btn{display:block;width:100%;aspect-ratio:1/1;overflow:hidden;cursor:zoom-in;background:var(--bg2)}.hg-hero-btn img{width:100%;height:100%;object-fit:cover;transition:transform .64s var(--ease)}.hg-hero-btn:hover img{transform:scale(1.035)}.hg-single-blurb{font-size:clamp(20px,2.4vw,30px);line-height:1.28;letter-spacing:-.015em;margin-bottom:20px}.hg-single-content{font-size:15px;line-height:1.68;color:var(--muted2);max-width:58ch}.hg-single-content p{margin-bottom:1em}.hg-single-foot{max-width:1280px;margin:0 auto;padding:0 28px 74px;display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--rule);padding-top:20px}
.hg-masonry{padding:16px 28px 72px;max-width:1400px;margin:0 auto;column-count:4;column-gap:8px}.hg-masonry>div{break-inside:avoid;display:block;margin:0 0 8px}.hg-masonry-btn{display:block;width:100%;overflow:hidden;cursor:zoom-in;background:var(--bg2);position:relative}.hg-masonry-btn img,.hg-masonry-btn video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .64s var(--ease);pointer-events:none}.hg-masonry-btn:hover img,.hg-masonry-btn:hover video{transform:scale(1.025)}@media(max-width:1200px){.hg-masonry{column-count:3}}@media(max-width:720px){.hg-masonry{column-count:2;padding-left:20px;padding-right:20px}}

/* About / Contact */
.hg-page-wrap{max-width:1400px;margin:0 auto;padding:48px 28px 88px;color:var(--fg)}.hg-about-hero2{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:48px;align-items:start;padding-bottom:52px;border-bottom:1px solid var(--rule)}.hg-about-kicker{margin-bottom:14px}.hg-about-h1{font-size:clamp(32px,5vw,76px);line-height:.98;letter-spacing:-.04em;font-weight:520;max-width:14ch;text-wrap:balance}.hg-about-photo{background:var(--bg2);overflow:hidden}.hg-about-photo img{width:100%;aspect-ratio:1/1;object-fit:cover}.hg-about-section{display:grid;grid-template-columns:160px 1fr;gap:40px;padding:30px 0;border-bottom:1px solid var(--rule)}.hg-about-section:last-child{border-bottom:none}.hg-about-label{padding-top:4px}.hg-clients-list{columns:3;column-gap:30px;font-size:15px;line-height:1.9}.hg-clients-list li{break-inside:avoid;padding:4px 0;color:var(--fg)}.hg-acc-list{display:flex;flex-direction:column}.hg-acc-item{border-top:1px solid var(--rule)}.hg-acc-item:last-child{border-bottom:1px solid var(--rule)}.hg-acc-btn{width:100%;display:flex;align-items:center;gap:18px;padding:18px 0;font-size:clamp(22px,2.2vw,34px);letter-spacing:-.02em;line-height:1.05;font-weight:440;color:var(--fg);background:none;border:none;cursor:pointer;text-align:left;transition:color var(--fast)}.hg-acc-btn:hover{color:var(--muted2)}.hg-acc-title{font-weight:450}.hg-acc-icon{margin-left:auto;font-size:22px;color:var(--fg);width:28px;text-align:center;transition:transform .3s var(--ease);flex-shrink:0}.hg-acc-btn[aria-expanded="true"] .hg-acc-icon{transform:rotate(45deg)}.hg-acc-body{overflow:hidden;max-height:0;opacity:0;transition:max-height .36s var(--ease),opacity .28s var(--ease)}.hg-acc-body.open{max-height:420px;opacity:1;padding:4px 0 22px}.hg-acc-body p{font-size:15px;line-height:1.7;color:var(--muted2);max-width:70ch}.hg-parcours-line{display:grid;grid-template-columns:180px 1fr;gap:16px;padding:18px 0;align-items:baseline}.hg-parcours-when{font-size:13px;color:var(--muted2);font-variant-numeric:tabular-nums}.hg-parcours-role{font-size:clamp(20px,2vw,28px);line-height:1.1;letter-spacing:-.02em}.hg-about-approche{font-size:clamp(26px,3vw,40px);line-height:1.26;max-width:20ch}
.hg-contact-grid{display:grid;grid-template-columns:1fr;gap:48px;padding-top:40px;border-top:1px solid var(--rule)}@media(min-width:860px){.hg-contact-grid{grid-template-columns:1fr 1.2fr}}.hg-contact-info{display:flex;flex-direction:column;gap:22px}.hg-contact-info a,.hg-contact-info span{font-size:15px;line-height:1.6;display:block;color:var(--muted2)}.hg-contact-info a:hover{color:var(--fg)}.hg-contact-form{display:flex;flex-direction:column;gap:20px}.hg-field{display:flex;flex-direction:column;gap:5px}.hg-field label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:520;color:var(--muted2)}.hg-field input,.hg-field textarea{width:100%;padding:12px 0 8px;background:transparent;border:none;border-bottom:1px solid var(--rule2);color:var(--fg);font:inherit;font-size:16px;outline:none;transition:border-color var(--fast);resize:vertical}.hg-field input:focus,.hg-field textarea:focus{border-bottom-color:var(--fg)}.hg-submit{align-self:flex-start;padding:12px 22px;background:var(--fg);color:var(--bg);border-radius:0;font-size:13px;font-weight:650;display:inline-flex;align-items:center;gap:8px;transition:transform var(--fast);margin-top:4px}.hg-submit:hover{transform:translateX(2px)}.hg-notice{padding:10px 14px;font-size:14px;margin-bottom:10px;border:1px solid var(--rule2)}.hg-notice.success{background:#17331d;color:#cff0d4}.hg-notice.error{background:#411919;color:#ffd0d0}

/* Footer */
.hg-footer{padding:48px 28px 18px;border-top:1px solid var(--rule);background:var(--bg);color:var(--fg)}.hg-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}.hg-footer-col{display:flex;flex-direction:column;gap:8px}.hg-footer-col a,.hg-footer-col span,.hg-footer-tagline{font-size:13px;color:var(--muted2);line-height:1.6}.hg-footer-col a:hover{color:var(--fg)}.hg-footer-nav{display:flex;flex-direction:column;gap:5px}.hg-footer-colophon{display:flex;justify-content:space-between;gap:18px;padding-top:34px;margin-top:34px;border-top:1px solid var(--rule);font-size:12px;color:var(--muted)}

/* Lightbox */
.hg-lightbox{position:fixed;inset:0;z-index:500;background:var(--overlay);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center}.hg-lightbox[hidden]{display:none}.hg-lb-top{position:absolute;top:0;left:0;right:0;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;color:#F0EBE3}.hg-lb-close,.hg-lb-prev,.hg-lb-next{width:36px;height:36px;border-radius:0;border:1px solid rgba(240,235,227,.25);color:#F0EBE3;font-size:18px;display:flex;align-items:center;justify-content:center;transition:background var(--fast)}.hg-lb-close:hover,.hg-lb-prev:hover,.hg-lb-next:hover{background:rgba(240,235,227,.12)}.hg-lb-prev,.hg-lb-next{position:absolute;top:50%;transform:translateY(-50%);font-size:22px;width:44px;height:44px}.hg-lb-prev{left:16px}.hg-lb-next{right:16px}.hg-lb-stage{max-width:min(1400px,92vw);max-height:82vh;display:flex;align-items:center;justify-content:center}.hg-lb-stage img,.hg-lb-stage video{max-width:100%;max-height:78vh;object-fit:contain;border-radius:0}.hg-lb-help{position:absolute;bottom:16px;left:0;right:0;text-align:center;font-size:11px;color:rgba(240,235,227,.4);text-transform:uppercase;letter-spacing:.06em}

@media(hover:hover) and (pointer:fine){.hg-video-play{opacity:0;transition:opacity var(--fast)}.hg-tile:hover .hg-video-play,.hg-masonry-btn:hover .hg-video-play{opacity:1}}
@media(hover:none),(pointer:coarse){.hg-strip{scroll-snap-type:x proximity;cursor:grab}.hg-strip .hg-tile{scroll-snap-align:start}.hg-video-play{display:flex!important;opacity:1!important}.hg-strip video{display:block!important;opacity:1!important;visibility:visible!important;background:#111!important}}

@media(max-width:860px){.hg-accordion-inner{grid-template-columns:1fr;gap:15px}.hg-services-wrap,.hg-acc-cta{border-left:none;padding-left:0}.hg-acc-toggle{padding-left:12px}.hg-about-hero2{grid-template-columns:1fr;gap:24px}.hg-about-section{grid-template-columns:1fr;gap:18px}.hg-clients-list{columns:2}.hg-footer-grid{grid-template-columns:1fr 1fr}.hg-contact-grid{grid-template-columns:1fr}.hg-parcours-line{grid-template-columns:1fr;gap:6px}}
@media(max-width:720px){.hg-nav{display:none}.hg-burger{display:flex}.hg-header{padding:14px 20px}.hg-home-hero{padding:16px 20px 12px;top:54px}.hg-strip{padding:0 20px;height:190px;gap:8px}.hg-project-card{padding-bottom:28px;margin-bottom:30px}.hg-project-meta{padding:9px 20px 0}.hg-accordion{padding:0 20px}.hg-single-head,.hg-single-body,.hg-single-foot{padding-left:20px;padding-right:20px}.hg-page-wrap{padding:40px 20px 72px}.hg-footer{padding:36px 20px 18px}.hg-footer-grid{grid-template-columns:1fr}.hg-footer-colophon{flex-direction:column}.hg-lb-prev{left:8px}.hg-lb-next{right:8px}.hg-lb-help{display:none}.hg-project-mainline{max-width:100%;flex-wrap:wrap}.hg-project-side{width:100%;justify-content:space-between}.hg-clients-list{columns:1}.hg-acc-btn{font-size:clamp(20px,7vw,30px)}}

/* Final mobile UX patch: native stories-like swipe + visible video thumbnails */
.hg-strip{scroll-behavior:smooth;will-change:scroll-position;}
.hg-strip video{transform:translateZ(0);background:#111;}
@media(hover:none),(pointer:coarse){
  .hg-strip{touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-left:20px;}
  .hg-tile{scroll-snap-align:start;touch-action:manipulation;}
  .hg-tile img,.hg-tile video{pointer-events:none!important;-webkit-user-drag:none!important;user-select:none!important;-webkit-user-select:none!important;}
  .hg-strip video[data-strip-video]{display:block!important;opacity:1!important;visibility:visible!important;min-width:100%;min-height:100%;background:#111;object-fit:cover;}
  .hg-video-play{opacity:1!important;display:flex!important;}
}

/* HG final drag/typography stability */
.hg-strip{scroll-behavior:auto!important;}
.hg-strip.dragging{scroll-snap-type:none!important;}
.hg-h1,.hg-project-name{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}

/* =========================================================
   HG FINAL TYPOGRAPHY RESTORE — serif vivant, stable
   - UI / H1 principal : Instrument Sans variable
   - Projets + contenus éditoriaux : Instrument Serif italic
   - Pas d'animation de weight sur la serif = pas de glitch
   ========================================================= */
.serif,
.hg-project-name.serif,
.hg-single-blurb,
.hg-about-approche,
.hg-about-page .hg-about-h1 em,
.hg-about-page .hg-acc-body p,
.hg-about-page .hg-parcours-role,
.hg-about-page .hg-about-approach-section p,
.hg-page-wrap .serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-variation-settings: normal !important;
  letter-spacing: -0.012em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Les noms de projets gardent la serif, mais restent stables au hover */
.hg-project-name,
.hg-project-name.serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-variation-settings: normal !important;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  transition: opacity .28s var(--ease), transform .28s var(--ease), letter-spacing .28s var(--ease) !important;
}
.hg-project-mainline:hover .hg-project-name,
.hg-project-mainline:hover .hg-project-name.serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-variation-settings: normal !important;
  letter-spacing: -0.03em;
  opacity: .86;
  transform: translateY(-1px);
}

/* H1 home : sans variable propre, animation weight uniquement ici */
.hg-h1 {
  font-family: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-style: normal !important;
  font-weight: 680;
  font-variation-settings: 'wght' 680;
  transition: font-weight .32s var(--ease), font-variation-settings .32s var(--ease), opacity .25s var(--ease), letter-spacing .32s var(--ease) !important;
}
.hg-h1.morphed {
  font-family: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-style: normal !important;
  font-weight: 300;
  font-variation-settings: 'wght' 300;
}

/* À propos : les descriptions reprennent le ton éditorial serif */
.hg-about-page .hg-about-h1 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em;
  line-height: .98;
}
.hg-about-page .hg-about-h1 em {
  font-style: italic !important;
}
.hg-about-page .hg-acc-title {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
}
.hg-about-page .hg-acc-body p,
.hg-about-page .hg-about-approche {
  font-size: clamp(21px, 2.4vw, 36px);
  line-height: 1.18;
  color: var(--fg);
}
.hg-about-page .hg-parcours-role {
  font-size: clamp(24px, 2.7vw, 42px);
}

/* Single projet : résumé éditorial en serif, contenu long lisible en sans */
.hg-single-blurb {
  font-size: clamp(25px, 3vw, 46px);
  line-height: 1.12;
  color: var(--fg);
}
.hg-single-content {
  font-family: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media(max-width:760px){
  .hg-project-name,
  .hg-project-name.serif{font-size:clamp(23px,8vw,34px)}
  .hg-about-page .hg-acc-body p,
  .hg-about-page .hg-about-approche{font-size:24px;line-height:1.18}
}

/* =========================================================
   HG FINAL PATCH — serif exactement comme la DA validée
   - Hugo Giorgi par défaut : Instrument Sans
   - Nom de projet dans le H1 dynamique : Instrument Serif italic
   - Noms de projets : Instrument Serif italic
   - À propos intro éditoriale : Instrument Serif italic
   ========================================================= */
.hg-h1:not(.morphed){
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
  font-style:normal !important;
  font-weight:680 !important;
  font-variation-settings:'wght' 680 !important;
  letter-spacing:-.045em !important;
}
.hg-h1.morphed{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif !important;
  font-style:italic !important;
  font-weight:400 !important;
  font-variation-settings:normal !important;
  letter-spacing:-.035em !important;
  line-height:.94 !important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition:opacity .24s var(--ease),letter-spacing .28s var(--ease) !important;
}
.hg-project-name,
.hg-project-name.serif,
.hg-project-mainline .hg-project-name{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif !important;
  font-style:italic !important;
  font-weight:400 !important;
  font-variation-settings:normal !important;
  letter-spacing:-.02em !important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.hg-project-mainline:hover .hg-project-name{
  letter-spacing:-.032em !important;
  opacity:.88;
  transform:translateY(-1px);
}
.hg-about-page .hg-about-h1,
.hg-about-page .hg-about-h1 p,
.hg-about-page .hg-about-h1 em,
.hg-about-page .hg-about-approche,
.hg-about-page .hg-acc-title,
.hg-about-page .hg-parcours-role{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif !important;
  font-style:italic !important;
  font-weight:400 !important;
  font-variation-settings:normal !important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.hg-about-page .hg-about-h1{
  font-size:clamp(34px,5.3vw,82px) !important;
  line-height:.98 !important;
  letter-spacing:-.038em !important;
  max-width:15ch;
}
@media(max-width:760px){
  .hg-h1.morphed{font-size:clamp(42px,12vw,74px) !important;letter-spacing:-.032em !important;}
  .hg-about-page .hg-about-h1{font-size:clamp(38px,12vw,68px) !important;max-width:100%;}
}

/* =========================================================
   HG PERFORMANCE + ABOUT LAYOUT FINAL PATCH
   - True lazy media placeholder state
   - About image/text alignment refined
   - About accordion descriptions set in Sans for readability
   ========================================================= */
.hg-lazy{opacity:0;background:var(--bg2);}
.hg-tile img:not(.hg-lazy){opacity:1;}

@media(min-width:861px){
  .hg-about-hero2{
    grid-template-columns:minmax(0,0.95fr) clamp(340px,28vw,430px) !important;
    gap:clamp(28px,4vw,56px) !important;
    align-items:start !important;
  }
  .hg-about-photo{width:100%;justify-self:end;}
  .hg-about-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;}
}

.hg-about-page .hg-acc-body p,
.hg-about-page .hg-acc-body-graphic p{
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
  font-style:normal !important;
  font-weight:420 !important;
  letter-spacing:-.01em !important;
  font-size:clamp(15px,1.2vw,18px) !important;
  line-height:1.62 !important;
  color:var(--muted2) !important;
  max-width:76ch !important;
}

@media(max-width:860px){
  .hg-about-hero2{gap:22px !important;}
  .hg-about-photo{max-width:420px;}
  .hg-about-page .hg-acc-body p,
  .hg-about-page .hg-acc-body-graphic p{font-size:16px !important;line-height:1.62 !important;}
}

/* =========================================================
   HG SMART MEDIA FINAL PATCH
   - Home loads light first, media loads progressively per tile
   - Videos always have a visible card state, even before source load
   - About layout refined + accordion descriptions in sans serif
   ========================================================= */
.hg-video-tile{background:#111;position:relative;}
.hg-video-tile video{background:#111;}
.hg-video-lazy video{opacity:.16;}
.hg-video-label{position:absolute;right:10px;bottom:11px;color:rgba(240,235,227,.72);font-size:10px;letter-spacing:.12em;pointer-events:none;mix-blend-mode:normal;}
.hg-video-lazy .hg-video-label{opacity:1;}
.hg-video-lazy::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(240,235,227,.035),rgba(240,235,227,.0));pointer-events:none;}
.hg-lazy{opacity:.08!important;background:var(--bg2)!important;}
.hg-tile img.hg-lazy{filter:blur(2px);}
@media(hover:none),(pointer:coarse){
  .hg-strip{scroll-snap-type:x proximity;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;}
  .hg-video-tile{min-width:auto;}
  .hg-video-play{z-index:2;}
  .hg-video-label{z-index:2;display:block;}
}
@media(min-width:861px){
  .hg-about-hero2{grid-template-columns:minmax(0,.92fr) clamp(380px,30vw,480px)!important;gap:clamp(22px,3vw,44px)!important;align-items:start!important;}
  .hg-about-photo{justify-self:end;width:100%;}
  .hg-about-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;}
}
.hg-about-page .hg-acc-body p,
.hg-about-page .hg-acc-body-graphic p{font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-style:normal!important;font-weight:420!important;letter-spacing:-.01em!important;font-size:clamp(15px,1.18vw,18px)!important;line-height:1.62!important;color:var(--muted2)!important;max-width:78ch!important;}
@media(max-width:860px){.hg-about-hero2{gap:20px!important}.hg-about-photo{max-width:460px}}

/* =========================================================
   HG FINAL UX REQUEST — video previews + borderless UI + serif H1
   ========================================================= */
/* Home H1: serif comme les noms de projets */
.hg-h1,
.hg-h1:not(.morphed),
.hg-h1.morphed{
  font-family:'Instrument Serif', Georgia, 'Times New Roman', serif !important;
  font-style:italic !important;
  font-weight:400 !important;
  font-variation-settings:normal !important;
  letter-spacing:-.035em !important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition:opacity .24s var(--ease),letter-spacing .28s var(--ease),transform .28s var(--ease) !important;
}
.hg-h1.morphed{letter-spacing:-.045em!important;}

/* Boutons Info + Dark/Light sans carré ni contour */
.hg-theme-btn,
.hg-acc-toggle{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  padding:0!important;
  color:var(--fg)!important;
}
.hg-theme-btn{font-size:14px;line-height:1;opacity:.72;}
.hg-theme-btn:hover{background:transparent!important;color:var(--fg)!important;opacity:1;transform:none!important;}
.hg-acc-toggle{display:inline-flex!important;align-items:baseline!important;gap:8px!important;color:var(--muted2)!important;}
.hg-acc-toggle:hover{color:var(--fg)!important;}
.hg-acc-toggle-icon{font-family:'Instrument Serif',serif;font-style:italic;font-size:22px;line-height:.7;}

/* Vidéos : toujours un aperçu visuel, jamais une tuile noire vide */
.hg-video-tile{background:var(--bg2)!important;isolation:isolate;}
.hg-video-tile video{background:transparent!important;position:relative;z-index:1;}
.hg-video-tile video[poster]{object-fit:cover;background:var(--bg2)!important;}
.hg-video-fallback{
  position:absolute;inset:0;z-index:0;display:flex;align-items:flex-end;justify-content:flex-start;
  padding:14px;background:
    radial-gradient(circle at 20% 18%, rgba(200,68,58,.38), transparent 28%),
    linear-gradient(135deg, rgba(240,235,227,.18), rgba(240,235,227,.03) 46%, rgba(17,17,17,.24));
  color:#F0EBE3;overflow:hidden;pointer-events:none;
}
.hg-video-fallback .serif{font-size:clamp(20px,2.1vw,34px);line-height:.98;max-width:9ch;opacity:.78;}
.hg-video-label,.hg-video-play{z-index:3;}
.hg-video-lazy video{opacity:1!important;}
.hg-video-lazy .hg-video-label{opacity:.9;}
@media(hover:none),(pointer:coarse){
  .hg-video-tile video{display:block!important;opacity:1!important;visibility:visible!important;}
  .hg-video-fallback{z-index:0;}
  .hg-theme-btn,.hg-acc-toggle{background:transparent!important;border:0!important;}
}

/* =========================================================
   HG FINAL POLISH — borderless controls, serif H1, clear video previews
   ========================================================= */
.hg-h1,
.hg-h1:not(.morphed),
.hg-h1.morphed{
  font-family:'Instrument Serif', Georgia, 'Times New Roman', serif !important;
  font-style:italic !important;
  font-weight:400 !important;
  font-variation-settings:normal !important;
  letter-spacing:-.045em !important;
  text-rendering:optimizeLegibility !important;
  -webkit-font-smoothing:antialiased !important;
  -moz-osx-font-smoothing:grayscale !important;
}
.hg-h1.morphed{letter-spacing:-.055em !important;}

.hg-theme-btn,
.hg-theme-btn:hover,
.hg-theme-btn:focus,
.hg-theme-btn:active,
.hg-acc-toggle,
.hg-acc-toggle:hover,
.hg-acc-toggle:focus,
.hg-acc-toggle:active,
.hg-acc-toggle-icon,
.hg-acc-toggle:hover .hg-acc-toggle-icon,
.hg-acc-toggle.open .hg-acc-toggle-icon{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  outline:0 !important;
  border-radius:0 !important;
}
.hg-theme-btn{
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  padding:0 !important;
  line-height:1 !important;
  color:var(--fg) !important;
  opacity:.76 !important;
}
.hg-theme-btn:hover{opacity:1 !important;transform:none !important;}
.hg-acc-toggle{
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  border-left:0 !important;
  gap:10px !important;
  color:var(--muted2) !important;
}
.hg-acc-toggle-icon{
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  display:inline !important;
  font-family:'Instrument Serif', Georgia, serif !important;
  font-style:italic !important;
  font-size:22px !important;
  line-height:1 !important;
  color:var(--fg) !important;
  transform:none !important;
}
.hg-acc-toggle.open .hg-acc-toggle-icon{transform:none !important;}

/* Video tiles: never black, no dark overlay. Poster/first frame stays visible. */
.hg-video-tile,
.hg-video-tile video,
.hg-video-tile video[poster]{
  background:var(--bg2) !important;
}
.hg-video-tile video{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
  object-fit:cover !important;
}
.hg-video-lazy video{opacity:1 !important;filter:none !important;}
.hg-video-lazy::after{display:none !important;content:none !important;}
.hg-video-tile::before{display:none !important;content:none !important;}
.hg-video-fallback{
  z-index:0 !important;
  background:
    radial-gradient(circle at 22% 20%, rgba(200,68,58,.32), transparent 30%),
    linear-gradient(135deg, rgba(240,235,227,.18), rgba(240,235,227,.06) 50%, rgba(17,17,17,.10)) !important;
}
.hg-video-label{
  color:rgba(240,235,227,.86) !important;
  text-shadow:0 1px 10px rgba(0,0,0,.35) !important;
}
.hg-lazy{opacity:.12 !important;filter:none !important;background:var(--bg2) !important;}

/* =========================================================
   HG FINAL ALIGNMENT PATCH — project accordion / about / contact
   ========================================================= */
/* Home project accordion: cleaner spacing and alignment */
.hg-project-card{padding-bottom:46px!important;margin-bottom:46px!important;}
.hg-project-meta{padding-top:14px!important;align-items:center!important;}
.hg-project-mainline{min-width:0!important;}
.hg-project-side{align-items:center!important;gap:18px!important;}
.hg-accordion{padding-left:28px!important;padding-right:28px!important;}
.hg-accordion.open{max-height:720px!important;}
.hg-accordion-inner{
  margin-top:16px!important;
  padding:26px 0 34px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(220px,.9fr) minmax(220px,.8fr)!important;
  gap:28px!important;
  align-items:start!important;
  border-top:1px solid var(--rule2)!important;
  border-bottom:1px solid var(--rule)!important;
}
.hg-acc-block,.hg-services-wrap,.hg-acc-cta{gap:14px!important;min-height:74px!important;}
.hg-services-wrap,.hg-acc-cta{border-left:1px solid var(--rule)!important;padding-left:26px!important;}
.hg-acc-blurb{font-family:'Instrument Sans',system-ui,sans-serif!important;font-style:normal!important;font-size:15px!important;line-height:1.65!important;max-width:68ch!important;color:var(--fg)!important;}
.hg-services{gap:0 6px!important;}
.hg-service-tag{font-family:'Instrument Sans',system-ui,sans-serif!important;font-size:14px!important;line-height:1.65!important;color:var(--fg)!important;}
.hg-acc-cta .hg-view-btn{width:max-content!important;}

/* About hero: reduce text size, enlarge image, align top/bottom more cleanly */
.hg-about-page .hg-about-hero2{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(420px,520px)!important;
  gap:clamp(36px,5vw,72px)!important;
  align-items:start!important;
  border-bottom:1px solid var(--rule)!important;
  padding-bottom:44px!important;
}
.hg-about-page .hg-about-h1{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  font-size:clamp(46px,4.55vw,68px)!important;
  line-height:.985!important;
  letter-spacing:-.035em!important;
  max-width:14ch!important;
  margin:0!important;
}
.hg-about-page .hg-about-photo{width:100%!important;max-width:520px!important;justify-self:end!important;margin-top:0!important;}
.hg-about-page .hg-about-photo img{width:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;}
.hg-about-page .hg-about-kicker{margin-bottom:18px!important;}
.hg-about-section{padding-top:24px!important;}
/* À propos accordion: serif titles, sans readable descriptions */
.hg-about-page .hg-acc-title{font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:400!important;}
.hg-about-page .hg-acc-body p,.hg-about-page .hg-acc-body-graphic p{
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-style:normal!important;
  font-weight:430!important;
  font-size:clamp(15px,1.12vw,17px)!important;
  line-height:1.62!important;
  letter-spacing:-.005em!important;
  color:var(--muted2)!important;
}

/* Contact: headline in the same editorial serif style */
.hg-contact-page .hg-about-h1,
body.page-template-page-contact .hg-about-h1,
body.page-template-page-contact-php .hg-about-h1{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  font-size:clamp(52px,6vw,92px)!important;
  line-height:.96!important;
  letter-spacing:-.04em!important;
  max-width:12ch!important;
}

@media(max-width:980px){
  .hg-about-page .hg-about-hero2{grid-template-columns:1fr!important;gap:26px!important;}
  .hg-about-page .hg-about-h1{max-width:100%!important;font-size:clamp(42px,10vw,64px)!important;}
  .hg-about-page .hg-about-photo{justify-self:start!important;max-width:min(520px,100%)!important;}
  .hg-accordion-inner{grid-template-columns:1fr!important;gap:18px!important;padding-bottom:30px!important;}
  .hg-services-wrap,.hg-acc-cta{border-left:0!important;padding-left:0!important;border-top:1px solid var(--rule)!important;padding-top:18px!important;}
}
@media(max-width:720px){
  .hg-project-card{padding-bottom:38px!important;margin-bottom:38px!important;}
  .hg-accordion{padding-left:20px!important;padding-right:20px!important;}
  .hg-accordion-inner{margin-top:14px!important;padding:22px 0 30px!important;}
  .hg-contact-page .hg-about-h1,
  body.page-template-page-contact .hg-about-h1,
  body.page-template-page-contact-php .hg-about-h1{font-size:clamp(44px,13vw,68px)!important;max-width:100%!important;}
}

/* =========================================================
   HG FINAL PATCH — clean project meta alignment + diagonal icon + video previews
   ========================================================= */
.hg-project-meta{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  column-gap:24px !important;
  padding:14px 28px 12px !important;
  min-height:54px !important;
  border-bottom:1px solid var(--rule2) !important;
}
.hg-project-mainline{
  display:flex !important;
  align-items:baseline !important;
  min-width:0 !important;
  gap:10px !important;
  line-height:1 !important;
}
.hg-project-client{line-height:1.05 !important;white-space:nowrap !important;}
.hg-project-name{line-height:.95 !important;white-space:nowrap !important;}
.hg-project-side{
  display:grid !important;
  grid-template-columns:auto auto auto !important;
  align-items:center !important;
  justify-items:end !important;
  gap:18px !important;
  min-width:max-content !important;
  line-height:1 !important;
}
.hg-project-cat,.hg-project-year{line-height:1 !important;white-space:nowrap !important;}
.hg-acc-toggle{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  min-height:0 !important;
  line-height:1 !important;
}
.hg-acc-toggle-label{line-height:1 !important;transform:translateY(0) !important;}
.hg-acc-toggle-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:18px !important;
  height:18px !important;
  border:0 !important;
  background:transparent !important;
  font-family:'Instrument Sans',system-ui,sans-serif !important;
  font-style:normal !important;
  font-size:22px !important;
  font-weight:500 !important;
  line-height:1 !important;
  color:var(--fg) !important;
  transform:none !important;
}
.hg-acc-toggle:hover .hg-acc-toggle-icon{background:transparent !important;color:var(--fg) !important;opacity:.65 !important;}
.hg-acc-toggle.open .hg-acc-toggle-icon{transform:none !important;}

/* Video previews: no repeated project-image poster. If no true poster exists, show a neutral editorial placeholder until metadata/first frame is available. */
.hg-video-tile{background:var(--bg2) !important;}
.hg-video-tile video{background:transparent !important;position:relative !important;z-index:1 !important;}
.hg-video-fallback-neutral{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  padding:14px !important;
  background:
    radial-gradient(circle at 22% 18%, rgba(0,0,0,.22), transparent 30%),
    linear-gradient(135deg, rgba(240,235,227,.16), rgba(240,235,227,.045) 46%, rgba(17,17,17,.12)) !important;
  color:var(--fg) !important;
  pointer-events:none !important;
  z-index:0 !important;
}
.hg-video-fallback-neutral .serif{font-size:clamp(18px,2vw,32px) !important;line-height:.95 !important;opacity:.62 !important;}
.hg-video-play,.hg-video-label{z-index:3 !important;}

@media(max-width:720px){
  .hg-project-meta{
    grid-template-columns:1fr auto !important;
    padding:12px 20px 10px !important;
    row-gap:10px !important;
  }
  .hg-project-mainline{grid-column:1 / -1 !important;}
  .hg-project-side{
    grid-column:1 / -1 !important;
    width:100% !important;
    grid-template-columns:1fr auto auto !important;
    gap:14px !important;
  }
  .hg-project-cat{justify-self:start !important;}
}

/* =========================================================
   HG FINAL POLISH — clean meta row, no separators, real video preview
   ========================================================= */
.hg-project-meta{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  align-items:center!important;
  gap:18px 28px!important;
  padding:13px 28px 12px!important;
  min-height:52px!important;
  border-top:0!important;
  border-bottom:1px solid var(--rule)!important;
}
.hg-project-mainline{
  display:flex!important;
  align-items:baseline!important;
  gap:10px!important;
  min-width:0!important;
  line-height:1!important;
}
.hg-project-client{
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-size:14px!important;
  font-weight:520!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.hg-project-sep{color:var(--muted2)!important;line-height:1!important;transform:translateY(-1px)!important;}
.hg-project-name{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-size:clamp(21px,1.5vw,31px)!important;
  font-weight:400!important;
  line-height:.92!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
}
.hg-project-side{
  display:grid!important;
  grid-template-columns:auto auto auto!important;
  align-items:center!important;
  justify-content:end!important;
  gap:18px!important;
  min-width:max-content!important;
  line-height:1!important;
}
.hg-project-cat,.hg-project-year{
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-size:11px!important;
  font-weight:430!important;
  line-height:1!important;
  color:var(--muted2)!important;
  white-space:nowrap!important;
}
.hg-acc-toggle,
.hg-acc-toggle:hover,
.hg-acc-toggle:focus,
.hg-acc-toggle:active{
  border:0!important;
  border-left:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none!important;
  padding:0!important;
  margin:0!important;
  min-height:0!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  color:var(--fg)!important;
}
.hg-acc-toggle-label{
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-size:11px!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  color:var(--muted2)!important;
  line-height:1!important;
}
.hg-acc-toggle-icon,
.hg-acc-toggle:hover .hg-acc-toggle-icon,
.hg-acc-toggle.open .hg-acc-toggle-icon{
  width:auto!important;
  height:auto!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--fg)!important;
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-size:18px!important;
  font-weight:650!important;
  line-height:1!important;
  transform:none!important;
  opacity:1!important;
}
.hg-acc-toggle:hover .hg-acc-toggle-icon{opacity:.58!important;}
.hg-accordion-inner{
  border-top:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(180px,.9fr) minmax(150px,.68fr)!important;
  gap:28px!important;
  padding:22px 0 28px!important;
  align-items:start!important;
}
.hg-services-wrap,.hg-acc-cta{
  border-left:0!important;
  padding-left:0!important;
}
.hg-acc-block,.hg-services-wrap,.hg-acc-cta{min-height:0!important;gap:10px!important;}
.hg-acc-blurb{font-size:14px!important;line-height:1.62!important;max-width:62ch!important;}
.hg-acc-cta .hg-view-btn{font-size:13px!important;}

/* Video tiles: keep each video itself visible. No repeated project-image poster. */
.hg-video-tile{background:var(--bg2)!important;isolation:isolate!important;}
.hg-video-tile video{
  background:#151515!important;
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  position:relative!important;
  z-index:1!important;
}
.hg-video-tile.video-ready .hg-video-fallback-neutral{opacity:0!important;visibility:hidden!important;}
.hg-video-fallback-neutral{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  padding:12px!important;
  background:linear-gradient(135deg,rgba(17,17,17,.12),rgba(240,235,227,.08))!important;
  color:var(--muted2)!important;
  pointer-events:none!important;
  z-index:2!important;
  opacity:1!important;
  transition:opacity .22s ease,visibility .22s ease!important;
}
.hg-video-fallback-neutral .mono{font-size:10px!important;letter-spacing:.13em!important;text-transform:uppercase!important;}
.hg-video-play,.hg-video-label{z-index:4!important;}

@media(max-width:860px){
  .hg-accordion-inner{grid-template-columns:1fr!important;gap:18px!important;border-top:0!important;}
  .hg-services-wrap,.hg-acc-cta{border-top:0!important;padding-top:0!important;}
}
@media(max-width:720px){
  .hg-project-meta{grid-template-columns:1fr!important;padding:12px 20px 12px!important;}
  .hg-project-mainline{width:100%!important;overflow:hidden!important;}
  .hg-project-client{font-size:13px!important;}
  .hg-project-name{font-size:22px!important;white-space:normal!important;}
  .hg-project-side{width:100%!important;grid-template-columns:1fr auto auto!important;gap:14px!important;}
  .hg-project-cat{justify-self:start!important;}
}


/* === HG final polish: project row alignment, arrow icon, mobile video previews === */
.hg-project-meta{
  min-height:56px!important;
  padding:0 28px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  border-top:1px solid var(--rule)!important;
  border-bottom:1px solid var(--rule)!important;
  column-gap:28px!important;
}
.hg-project-mainline{display:flex!important;align-items:baseline!important;gap:10px!important;min-width:0!important;line-height:1!important;}
.hg-project-client{font-size:14px!important;font-weight:520!important;line-height:1!important;white-space:nowrap!important;}
.hg-project-name{line-height:.95!important;transform:translateY(1px)!important;}
.hg-project-side{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:18px!important;line-height:1!important;}
.hg-project-cat,.hg-project-year,.hg-acc-toggle-label{line-height:1!important;display:inline-flex!important;align-items:center!important;}
.hg-acc-toggle{display:inline-flex!important;align-items:center!important;gap:8px!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;color:var(--fg)!important;line-height:1!important;}
.hg-acc-toggle-icon{font-size:0!important;line-height:0!important;width:16px!important;height:16px!important;display:inline-block!important;background:var(--fg)!important;opacity:1!important;transform:translateY(0)!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100.3'%3E%3Cpolygon points='21.5 2.5 97.5 2.5 97.5 78.5 78.5 97.5 78.5 35.7 16.7 97.5 2.5 83.2 64.2 21.5 2.5 21.5 21.5 2.5'/%3E%3C/svg%3E") center/contain no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100.3'%3E%3Cpolygon points='21.5 2.5 97.5 2.5 97.5 78.5 78.5 97.5 78.5 35.7 16.7 97.5 2.5 83.2 64.2 21.5 2.5 21.5 21.5 2.5'/%3E%3C/svg%3E") center/contain no-repeat!important;}
.hg-acc-toggle.open .hg-acc-toggle-icon{transform:rotate(180deg)!important;}
.hg-acc-toggle:hover .hg-acc-toggle-icon{opacity:.55!important;}
.hg-accordion{border-bottom:0!important;}
.hg-accordion-inner{border-top:0!important;border-bottom:0!important;padding:24px 28px 34px!important;}
.hg-project-card{border-bottom:1px solid var(--rule)!important;}
.hg-services-wrap,.hg-acc-cta{border-left:0!important;border-top:0!important;}
.hg-video-tile video{background:#111!important;}
.hg-video-tile .hg-video-fallback-neutral{background:linear-gradient(135deg,rgba(17,17,17,.28),rgba(17,17,17,.06))!important;}
.hg-video-tile video[src],.hg-video-tile video:has(source[src]){opacity:1!important;}
.hg-video-play{border:0!important;background:rgba(17,17,17,.55)!important;color:#fff!important;}
@media(max-width:720px){
  .hg-project-meta{grid-template-columns:1fr!important;gap:12px!important;min-height:0!important;padding:12px 20px!important;}
  .hg-project-side{width:100%!important;justify-content:space-between!important;gap:10px!important;}
  .hg-project-mainline{width:100%!important;}
  .hg-project-client{font-size:13px!important;white-space:normal!important;}
  .hg-project-name{font-size:22px!important;white-space:normal!important;}
  .hg-accordion-inner{padding:20px 20px 28px!important;}
}


/* === HG FINAL FIX — clean row, stable arrow, video ratios/previews === */
.hg-project-card{border-bottom:0!important;margin-bottom:42px!important;padding-bottom:0!important;}
.hg-project-card.acc-open{border-bottom:0!important;}
.hg-project-meta{
  min-height:54px!important;
  padding:0 28px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:22px!important;
  border-top:1px solid var(--rule)!important;
  border-bottom:1px solid var(--rule)!important;
}
.hg-project-mainline{min-width:0!important;display:flex!important;align-items:baseline!important;gap:10px!important;line-height:1!important;}
.hg-project-client{font-size:14px!important;line-height:1!important;white-space:nowrap!important;}
.hg-project-sep{line-height:1!important;color:var(--muted2)!important;}
.hg-project-name{line-height:.95!important;transform:none!important;}
.hg-project-side{display:grid!important;grid-template-columns:auto auto auto!important;align-items:center!important;justify-content:end!important;gap:18px!important;line-height:1!important;}
.hg-project-cat,.hg-project-year,.hg-acc-toggle-label{font-size:11px!important;line-height:1!important;display:flex!important;align-items:center!important;color:var(--muted2)!important;}
.hg-acc-toggle{display:flex!important;align-items:center!important;gap:9px!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;color:var(--fg)!important;line-height:1!important;appearance:none!important;-webkit-appearance:none!important;}
.hg-acc-toggle:hover,.hg-acc-toggle:focus,.hg-acc-toggle:active{color:var(--fg)!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;}
.hg-acc-toggle-icon{
  font-size:0!important;line-height:0!important;width:17px!important;height:17px!important;display:inline-block!important;
  background-color:var(--fg)!important;opacity:1!important;transform:none!important;filter:none!important;color:transparent!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100.3'%3E%3Cpolygon points='21.5 2.5 97.5 2.5 97.5 78.5 78.5 97.5 78.5 35.7 16.7 97.5 2.5 83.2 64.2 21.5 2.5 21.5 21.5 2.5'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100.3'%3E%3Cpolygon points='21.5 2.5 97.5 2.5 97.5 78.5 78.5 97.5 78.5 35.7 16.7 97.5 2.5 83.2 64.2 21.5 2.5 21.5 21.5 2.5'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
.hg-acc-toggle:hover .hg-acc-toggle-icon,.hg-acc-toggle:focus .hg-acc-toggle-icon,.hg-acc-toggle:active .hg-acc-toggle-icon{background-color:var(--fg)!important;opacity:1!important;filter:none!important;}
.hg-acc-toggle.open .hg-acc-toggle-icon{transform:rotate(180deg)!important;background-color:var(--fg)!important;opacity:1!important;}
.hg-accordion{border:0!important;padding:0 28px!important;}
.hg-accordion.open{border:0!important;}
.hg-accordion-inner{border:0!important;padding:24px 0 32px!important;grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr) minmax(160px,.8fr)!important;gap:28px!important;}
.hg-services-wrap,.hg-acc-cta{border:0!important;padding-left:0!important;}
.hg-acc-block,.hg-services-wrap,.hg-acc-cta{min-height:0!important;gap:12px!important;}
.hg-acc-blurb{font-size:14px!important;line-height:1.65!important;max-width:64ch!important;}
.hg-video-tile{background:var(--bg2)!important;}
.hg-video-tile video{width:100%!important;height:100%!important;object-fit:cover!important;background:transparent!important;opacity:1!important;visibility:visible!important;}
.hg-video-tile.video-ready .hg-video-fallback-neutral{opacity:0!important;visibility:hidden!important;}
.hg-video-fallback-neutral{background:transparent!important;color:var(--muted2)!important;z-index:2!important;}
.hg-video-play{border:0!important;background:rgba(17,17,17,.45)!important;color:#fff!important;}
@media(max-width:720px){
  .hg-project-card{margin-bottom:38px!important;}
  .hg-project-meta{grid-template-columns:1fr!important;padding:12px 20px!important;gap:12px!important;}
  .hg-project-mainline{width:100%!important;flex-wrap:wrap!important;}
  .hg-project-client{white-space:normal!important;}
  .hg-project-side{width:100%!important;grid-template-columns:auto auto auto!important;justify-content:space-between!important;gap:12px!important;}
  .hg-accordion{padding:0 20px!important;}
  .hg-accordion-inner{grid-template-columns:1fr!important;gap:20px!important;padding:22px 0 30px!important;}
}

/* === HG FINAL REAL CLEAN FIX — no arrow SVG, stable +/×, about single-like layout === */
.hg-acc-toggle,
.hg-acc-toggle:hover,
.hg-acc-toggle:focus,
.hg-acc-toggle:active,
.hg-acc-toggle.open{
  color: var(--fg) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.hg-acc-toggle-icon,
.hg-acc-toggle:hover .hg-acc-toggle-icon,
.hg-acc-toggle:focus .hg-acc-toggle-icon,
.hg-acc-toggle:active .hg-acc-toggle-icon,
.hg-acc-toggle.open .hg-acc-toggle-icon{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  font-family: 'Instrument Sans', system-ui, sans-serif !important;
  font-size: 17px !important;
  font-style: normal !important;
  font-weight: 360 !important;
  line-height: 1 !important;
  color: var(--fg) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  text-decoration: none !important;
}
.hg-acc-toggle:hover .hg-acc-toggle-icon,
.hg-acc-toggle.open .hg-acc-toggle-icon{
  color: var(--fg) !important;
  opacity: 1 !important;
}
.hg-acc-toggle-label{ color: var(--muted2) !important; }
.hg-project-card.acc-open{ border-bottom: 0 !important; }
.hg-project-card.acc-open .hg-accordion{ border-bottom: 0 !important; }
.hg-project-card.acc-open .hg-accordion-inner{ border-bottom: 0 !important; }

@media (min-width: 861px){
  .hg-about-page .hg-about-hero2{
    display:grid !important;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr) !important;
    gap: clamp(32px, 4vw, 64px) !important;
    align-items:start !important;
    padding-bottom: 52px !important;
  }
  .hg-about-page .hg-about-photo{
    order:1 !important;
    width:100% !important;
    max-width:520px !important;
    justify-self:start !important;
    margin:0 !important;
  }
  .hg-about-page .hg-about-intro-text{
    order:2 !important;
    align-self:start !important;
    width:100% !important;
  }
  .hg-about-page .hg-about-h1{
    max-width: 11.5ch !important;
    font-size: clamp(48px, 5.2vw, 78px) !important;
    line-height: .96 !important;
    letter-spacing: -.045em !important;
    margin: 0 !important;
  }
}
@media (max-width: 860px){
  .hg-about-page .hg-about-hero2{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap: 24px !important;
  }
  .hg-about-page .hg-about-photo{ order:1 !important; }
  .hg-about-page .hg-about-intro-text{ order:2 !important; }
}

/* =========================================================
   HG FINAL ABOUT WIDTH FIX — texte plus large, image gauche
   Objectif: 4 lignes environ, comme demandé.
   ========================================================= */
@media (min-width: 861px){
  .hg-about-page .hg-about-hero2{
    display:grid !important;
    grid-template-columns:minmax(320px, 420px) minmax(0, 760px) !important;
    gap:56px !important;
    align-items:start !important;
    justify-content:center !important;
  }
  .hg-about-page .hg-about-photo{
    width:100% !important;
    max-width:420px !important;
  }
  .hg-about-page .hg-about-photo img{
    width:100% !important;
    aspect-ratio:1/1 !important;
    object-fit:cover !important;
    display:block !important;
  }
  .hg-about-page .hg-about-intro-text{
    width:100% !important;
    min-width:0 !important;
  }
  .hg-about-page .hg-about-h1{
    max-width:760px !important;
    width:100% !important;
    font-size:clamp(46px, 4.25vw, 72px) !important;
    line-height:.96 !important;
    letter-spacing:-.038em !important;
    text-wrap:normal !important;
    margin:0 !important;
  }
}
@media (max-width: 860px){
  .hg-about-page .hg-about-hero2{
    grid-template-columns:1fr !important;
    gap:28px !important;
  }
  .hg-about-page .hg-about-h1{
    max-width:100% !important;
    width:100% !important;
  }
}


/* =========================================================
   HG FINAL UI/PERF POLISH — progress, nav, info, accordions
   ========================================================= */
.hg-strip-progress{
  position:relative!important;
  height:3px!important;
  margin:8px 28px 0!important;
  background:color-mix(in srgb, var(--fg) 12%, transparent)!important;
  overflow:hidden!important;
}
.hg-strip-progress span{
  display:block!important;
  height:100%!important;
  width:10%;
  min-width:36px!important;
  background:var(--fg)!important;
  transform:translateX(0);
  transition:background .2s ease!important;
  will-change:transform,width;
}
[data-theme="dark"] .hg-strip-progress{background:rgba(255,255,255,.13)!important;}
[data-theme="dark"] .hg-strip-progress span{background:#fff!important;}

/* Header navigation active/hover — minimal framed state */
.hg-nav a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:4px 10px!important;
  border:1px solid transparent!important;
  border-radius:0!important;
  transition:border-color .18s ease, opacity .18s ease, color .18s ease!important;
}
.hg-nav a[aria-current="page"],
.hg-nav a.current-menu-item,
.hg-nav .current-menu-item > a,
body.home .hg-nav a[href$="/"]{
  border-color:var(--fg)!important;
  color:var(--fg)!important;
  opacity:1!important;
}
.hg-nav a:not([aria-current="page"]):hover{
  border-color:color-mix(in srgb, var(--fg) 34%, transparent)!important;
  opacity:1!important;
}

/* Info button: visible, centered, framed, never blue */
.hg-project-side{align-items:center!important;}
.hg-acc-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid var(--fg)!important;
  background:transparent!important;
  color:var(--fg)!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.hg-acc-toggle:hover,
.hg-acc-toggle:focus,
.hg-acc-toggle:active,
.hg-acc-toggle.open{
  background:transparent!important;
  color:var(--fg)!important;
  border-color:var(--fg)!important;
  outline:none!important;
}
.hg-acc-toggle-label{
  color:inherit!important;
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-size:11px!important;
  line-height:1!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}
.hg-acc-toggle-icon{
  all:unset!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:14px!important;
  height:14px!important;
  color:inherit!important;
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-size:16px!important;
  font-weight:420!important;
  line-height:1!important;
  transition:transform .24s ease!important;
}
.hg-acc-toggle.open .hg-acc-toggle-icon{transform:rotate(180deg)!important;}

/* Home accordion: cleaner bottom spacing; no useless separators */
.hg-accordion{border-bottom:0!important;}
.hg-accordion-inner{
  border-top:0!important;
  border-bottom:0!important;
  padding-bottom:34px!important;
}
.hg-services-wrap,.hg-acc-cta{border-left:0!important;border-top:0!important;}

/* About accordions: strict + / −, black/white only */
.hg-about-page .hg-acc-icon,
.hg-about-page .hg-acc-btn:hover .hg-acc-icon,
.hg-about-page .hg-acc-btn[aria-expanded="true"] .hg-acc-icon{
  color:var(--fg)!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-style:normal!important;
  font-size:22px!important;
  line-height:1!important;
}
.hg-about-page .hg-acc-body p,
.hg-about-page .hg-acc-body-graphic p{
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-style:normal!important;
  font-size:16px!important;
  line-height:1.6!important;
  color:var(--muted2)!important;
}

@media (max-width: 760px){
  .hg-strip-progress{margin:7px 20px 0!important;height:2px!important;}
  .hg-project-meta{align-items:flex-start!important;}
  .hg-project-side{width:100%!important;justify-content:space-between!important;gap:12px!important;}
  .hg-acc-toggle{min-height:32px!important;padding:0 10px!important;}
}

/* =========================================================
   HG MENU REDESIGN — studio editorial nav
   ========================================================= */
.hg-header{
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
}
.hg-header-inner{
  min-height:46px!important;
}
.hg-nav{
  position:absolute!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.hg-nav ul{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:3px!important;
  border:1px solid color-mix(in srgb, var(--fg) 10%, transparent)!important;
  background:color-mix(in srgb, var(--bg) 88%, transparent)!important;
}
.hg-nav li{display:flex!important;align-items:center!important;}
.hg-nav a{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:5px 12px 6px!important;
  border:1px solid transparent!important;
  border-radius:0!important;
  color:color-mix(in srgb, var(--fg) 58%, transparent)!important;
  background:transparent!important;
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:520!important;
  letter-spacing:.01em!important;
  text-decoration:none!important;
  transition:color .22s ease,border-color .22s ease,background .22s ease,transform .22s ease,letter-spacing .22s ease!important;
}
.hg-nav a::after{display:none!important;content:none!important;}
.hg-nav a:hover{
  color:var(--fg)!important;
  border-color:color-mix(in srgb, var(--fg) 22%, transparent)!important;
  font-family:'Instrument Serif',serif!important;
  font-style:italic!important;
  font-size:15px!important;
  font-weight:400!important;
  letter-spacing:-.02em!important;
  transform:translateY(-1px)!important;
}
.hg-nav .current-menu-item > a,
.hg-nav .current_page_item > a,
.hg-nav a[aria-current="page"],
body.home .hg-nav a[href$="/"]{
  color:var(--fg)!important;
  border-color:var(--fg)!important;
  background:color-mix(in srgb, var(--fg) 4%, transparent)!important;
  font-family:'Instrument Serif',serif!important;
  font-style:italic!important;
  font-size:15px!important;
  font-weight:400!important;
  letter-spacing:-.02em!important;
}
.hg-nav .current-menu-item > a:hover,
.hg-nav .current_page_item > a:hover,
.hg-nav a[aria-current="page"]:hover,
body.home .hg-nav a[href$="/"]:hover{
  transform:none!important;
  border-color:var(--fg)!important;
}
.hg-logo{
  transition:opacity .2s ease, transform .2s ease!important;
}
.hg-logo:hover{
  opacity:.65!important;
  transform:translateY(-1px)!important;
}
.hg-theme-btn,
.hg-burger,
#hg-mobile-close{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--fg)!important;
}
.hg-theme-btn:hover,
.hg-burger:hover,
#hg-mobile-close:hover{
  background:transparent!important;
  color:var(--fg)!important;
  opacity:.58!important;
}

@media(max-width:720px){
  .hg-nav{display:none!important;}
  .hg-header-inner{min-height:42px!important;}
  .hg-mobile-panel{
    padding:18px 20px!important;
  }
  .hg-mobile-top{
    border-bottom:1px solid var(--rule)!important;
    padding-bottom:18px!important;
  }
  .hg-mobile-nav{margin-top:30px!important;}
  .hg-mobile-nav div{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
  }
  .hg-mobile-nav li{list-style:none!important;}
  .hg-mobile-nav a{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    width:100%!important;
    padding:18px 0!important;
    border-bottom:1px solid var(--rule)!important;
    color:var(--fg)!important;
    font-family:'Instrument Serif',serif!important;
    font-style:italic!important;
    font-size:clamp(44px,13vw,74px)!important;
    line-height:.92!important;
    letter-spacing:-.04em!important;
  }
  .hg-mobile-nav a::after{
    content:'↗'!important;
    display:block!important;
    font-family:'Instrument Sans',system-ui,sans-serif!important;
    font-style:normal!important;
    font-size:16px!important;
    line-height:1!important;
    opacity:.35!important;
    transform:translateY(4px)!important;
  }
  .hg-mobile-nav .current-menu-item > a,
  .hg-mobile-nav .current_page_item > a,
  .hg-mobile-nav a[aria-current="page"]{
    color:var(--fg)!important;
  }
  .hg-mobile-nav .current-menu-item > a::after,
  .hg-mobile-nav .current_page_item > a::after,
  .hg-mobile-nav a[aria-current="page"]::after{
    opacity:1!important;
  }
}

/* =========================================================
   HG CUSTOM HEADER / FOOTER / INFO CTA — FINAL OVERRIDE
   Only visual overrides: header, active nav, info button, flat footer.
   ========================================================= */
.hg-header{
  height:64px!important;
  min-height:64px!important;
  padding:0 48px!important;
  background:#F0EBE3!important;
  border-bottom:1px solid rgba(17,17,17,.08)!important;
  position:sticky!important;
  top:0!important;
  z-index:100!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-theme="dark"] .hg-header{
  background:#111!important;
  border-bottom-color:rgba(240,235,227,.12)!important;
}
.hg-header-inner{
  height:64px!important;
  min-height:64px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  position:relative!important;
  gap:24px!important;
  max-width:none!important;
}
.hg-brand,
.hg-logo.hg-brand{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  font-family:'Instrument Serif',Georgia,serif!important;
  font-style:italic!important;
  color:#111!important;
  text-decoration:none!important;
  line-height:1!important;
  flex:0 0 auto!important;
  transition:opacity .2s ease!important;
}
html[data-theme="dark"] .hg-brand,
html[data-theme="dark"] .hg-logo.hg-brand{color:#F0EBE3!important;}
.hg-brand:hover{opacity:.68!important;transform:none!important;}
.hg-brand-mark{
  font-family:'Instrument Serif',Georgia,serif!important;
  font-style:italic!important;
  font-size:26px!important;
  letter-spacing:-.03em!important;
  color:inherit!important;
  font-weight:400!important;
  white-space:nowrap!important;
}
.hg-logo-star{color:#C8443A!important;font-size:26px!important;line-height:1!important;}
.hg-brand-sep{
  width:1px!important;
  height:20px!important;
  background:rgba(17,17,17,.2)!important;
  margin:0 0!important;
  display:block!important;
}
html[data-theme="dark"] .hg-brand-sep{background:rgba(240,235,227,.24)!important;}
.hg-brand-sub{
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-style:normal!important;
  font-size:9px!important;
  line-height:1.05!important;
  text-transform:uppercase!important;
  letter-spacing:.14em!important;
  color:rgba(17,17,17,.4)!important;
  font-weight:500!important;
}
html[data-theme="dark"] .hg-brand-sub{color:rgba(240,235,227,.42)!important;}

.hg-nav.center-nav,
.center-nav{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  background:transparent!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
}
.hg-nav.center-nav ul,
.center-nav ul{
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
}
.hg-nav.center-nav li,
.center-nav li{
  display:flex!important;
  align-items:center!important;
  position:relative!important;
  list-style:none!important;
}
.hg-nav.center-nav li:not(:last-child)::after,
.center-nav li:not(:last-child)::after{
  content:''!important;
  width:1px!important;
  height:14px!important;
  background:rgba(17,17,17,.15)!important;
  margin:0 18px!important;
  display:block!important;
}
html[data-theme="dark"] .hg-nav.center-nav li:not(:last-child)::after,
html[data-theme="dark"] .center-nav li:not(:last-child)::after{background:rgba(240,235,227,.18)!important;}
.hg-nav.center-nav a,
.center-nav a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  min-height:auto!important;
  padding:0 0 4px!important;
  border:0!important;
  background:transparent!important;
  color:rgba(17,17,17,.28)!important;
  font-family:'Instrument Serif',Georgia,serif!important;
  font-style:italic!important;
  font-size:20px!important;
  line-height:1!important;
  letter-spacing:-.01em!important;
  font-weight:400!important;
  text-decoration:none!important;
  transition:color .2s ease, opacity .2s ease!important;
}
html[data-theme="dark"] .hg-nav.center-nav a,
html[data-theme="dark"] .center-nav a{color:rgba(240,235,227,.32)!important;}
.hg-nav.center-nav a::after,
.center-nav a::after{
  content:''!important;
  display:block!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:1px!important;
  background:#111!important;
  transform:scaleX(0)!important;
  transform-origin:left!important;
  transition:transform .3s cubic-bezier(.2,.7,.2,1)!important;
}
html[data-theme="dark"] .hg-nav.center-nav a::after,
html[data-theme="dark"] .center-nav a::after{background:#F0EBE3!important;}
.hg-nav.center-nav a:hover,
.hg-nav.center-nav .current-menu-item>a,
.hg-nav.center-nav .current_page_item>a,
.hg-nav.center-nav a[aria-current="page"],
.center-nav a:hover,
.center-nav .current-menu-item>a,
.center-nav .current_page_item>a,
.center-nav a[aria-current="page"]{
  color:#111!important;
  background:transparent!important;
  border:0!important;
  transform:none!important;
  font-family:'Instrument Serif',Georgia,serif!important;
  font-style:italic!important;
  font-size:20px!important;
  letter-spacing:-.01em!important;
}
html[data-theme="dark"] .hg-nav.center-nav a:hover,
html[data-theme="dark"] .hg-nav.center-nav .current-menu-item>a,
html[data-theme="dark"] .hg-nav.center-nav .current_page_item>a,
html[data-theme="dark"] .hg-nav.center-nav a[aria-current="page"],
html[data-theme="dark"] .center-nav a:hover,
html[data-theme="dark"] .center-nav .current-menu-item>a,
html[data-theme="dark"] .center-nav .current_page_item>a,
html[data-theme="dark"] .center-nav a[aria-current="page"]{color:#F0EBE3!important;}
.hg-nav.center-nav a:hover::after,
.hg-nav.center-nav .current-menu-item>a::after,
.hg-nav.center-nav .current_page_item>a::after,
.hg-nav.center-nav a[aria-current="page"]::after,
.center-nav a:hover::after,
.center-nav .current-menu-item>a::after,
.center-nav .current_page_item>a::after,
.center-nav a[aria-current="page"]::after{transform:scaleX(1)!important;}

.hg-header-right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:16px!important;flex:0 0 auto!important;}
.hg-theme-btn{
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;
  color:#111!important;font-size:15px!important;line-height:1!important;padding:0!important;
  transition:opacity .2s ease!important;
}
html[data-theme="dark"] .hg-theme-btn{color:#F0EBE3!important;}
.hg-theme-btn:hover,.hg-theme-btn:active,.hg-theme-btn:focus{background:transparent!important;border:0!important;color:#111!important;opacity:.55!important;box-shadow:none!important;}
html[data-theme="dark"] .hg-theme-btn:hover,html[data-theme="dark"] .hg-theme-btn:active,html[data-theme="dark"] .hg-theme-btn:focus{color:#F0EBE3!important;}
.hg-burger{border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;padding:0!important;}
.hg-burger span{background:#111!important;}
html[data-theme="dark"] .hg-burger span{background:#F0EBE3!important;}

/* Info button: plein, lisible, cohérent dark/light */
.hg-acc-toggle{
  border-left:0!important;
  background:#111!important;
  color:#F0EBE3!important;
  padding:9px 12px!important;
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  line-height:1!important;
  transition:opacity .2s ease, transform .2s ease!important;
}
html[data-theme="dark"] .hg-acc-toggle{background:#F0EBE3!important;color:#111!important;}
.hg-acc-toggle:hover{opacity:.78!important;background:#111!important;color:#F0EBE3!important;transform:none!important;}
html[data-theme="dark"] .hg-acc-toggle:hover{background:#F0EBE3!important;color:#111!important;}
.hg-acc-toggle-label{color:inherit!important;font-family:'Instrument Sans',system-ui,sans-serif!important;font-size:10px!important;letter-spacing:.13em!important;font-weight:500!important;}
.hg-acc-toggle-icon{border:0!important;background:transparent!important;color:inherit!important;width:auto!important;height:auto!important;font-size:16px!important;line-height:1!important;transition:transform .28s cubic-bezier(.2,.7,.2,1)!important;}
.hg-acc-toggle:hover .hg-acc-toggle-icon{background:transparent!important;color:inherit!important;border:0!important;}
.hg-acc-toggle.open .hg-acc-toggle-icon{transform:rotate(45deg)!important;}

/* Footer flat : pas de séparateurs, alignement typo propre */
.hg-footer{
  border:0!important;
  background:var(--bg)!important;
  color:var(--fg)!important;
  padding:56px 48px 26px!important;
}
.hg-footer-grid{
  display:grid!important;
  grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(160px,.8fr))!important;
  gap:28px 56px!important;
  align-items:start!important;
  border:0!important;
}
.hg-footer-col{border:0!important;padding:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;}
.hg-footer-col .mono{margin-bottom:7px!important;}
.hg-footer-col a,.hg-footer-col span,.hg-footer-tagline{font-size:13px!important;line-height:1.45!important;color:var(--muted2)!important;}
.hg-footer-col a:hover{color:var(--fg)!important;}
.hg-footer-tagline{max-width:260px!important;margin-top:8px!important;}
.hg-footer-colophon{
  display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:24px!important;
  border:0!important;border-top:0!important;margin-top:46px!important;padding-top:0!important;
  font-size:12px!important;color:var(--muted)!important;
}
.hg-footer-colophon .serif{font-size:18px!important;color:var(--fg)!important;}

@media(max-width:720px){
  .hg-header{height:64px!important;min-height:64px!important;padding:0 20px!important;}
  .hg-brand-sep,.hg-brand-sub{display:none!important;}
  .center-nav,.hg-nav.center-nav{display:none!important;}
  .hg-burger{display:flex!important;}
  .hg-footer{padding:42px 20px 22px!important;}
  .hg-footer-grid{grid-template-columns:1fr!important;gap:24px!important;}
  .hg-footer-colophon{flex-direction:column!important;align-items:flex-start!important;margin-top:34px!important;}
}

/* =========================================================
   HG FINAL FIX — menu global, info CTA, footer editable/flat
   ========================================================= */
:root{--hg-menu-bg:#F0EBE3;--hg-menu-fg:#111;--hg-menu-muted:rgba(17,17,17,.38);--hg-menu-rule:rgba(17,17,17,.12);}
html[data-theme="dark"]{--hg-menu-bg:#111;--hg-menu-fg:#F0EBE3;--hg-menu-muted:rgba(240,235,227,.42);--hg-menu-rule:rgba(240,235,227,.16);}
.hg-header{
  height:64px!important;min-height:64px!important;padding:0 48px!important;
  background:var(--hg-menu-bg)!important;color:var(--hg-menu-fg)!important;
  border-bottom:1px solid var(--hg-menu-rule)!important;position:sticky!important;top:0!important;z-index:1000!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.hg-header-inner{height:64px!important;min-height:64px!important;width:100%!important;max-width:none!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;gap:24px!important;}
.hg-brand{display:flex!important;align-items:center!important;gap:8px!important;color:var(--hg-menu-fg)!important;text-decoration:none!important;line-height:1!important;}
.hg-brand-mark{font-family:'Instrument Serif',Georgia,serif!important;font-style:italic!important;font-size:26px!important;font-weight:400!important;letter-spacing:-.03em!important;color:var(--hg-menu-fg)!important;line-height:1!important;}
.hg-logo-star{color:#C8443A!important;}
.hg-brand-sep{display:block!important;width:1px!important;height:20px!important;background:var(--hg-menu-rule)!important;margin:0 8px!important;}
.hg-brand-sub{display:block!important;font-family:'Instrument Sans',system-ui,sans-serif!important;font-style:normal!important;font-size:9px!important;font-weight:500!important;line-height:1.05!important;text-transform:uppercase!important;letter-spacing:.14em!important;color:var(--hg-menu-muted)!important;}
.center-nav,.hg-nav.center-nav{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important;}
.center-nav ul,.hg-nav.center-nav ul{display:flex!important;align-items:center!important;gap:0!important;margin:0!important;padding:0!important;list-style:none!important;}
.center-nav li,.hg-nav.center-nav li{display:flex!important;align-items:center!important;position:relative!important;list-style:none!important;margin:0!important;padding:0!important;}
.center-nav li:not(:last-child)::after,.hg-nav.center-nav li:not(:last-child)::after{content:''!important;display:block!important;width:1px!important;height:14px!important;background:var(--hg-menu-rule)!important;margin:0 18px!important;}
.center-nav a,.hg-nav.center-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;padding:0 0 5px!important;margin:0!important;border:0!important;background:transparent!important;color:var(--hg-menu-muted)!important;font-family:'Instrument Serif',Georgia,serif!important;font-style:italic!important;font-size:20px!important;font-weight:400!important;line-height:1!important;letter-spacing:-.01em!important;text-decoration:none!important;transition:color .2s ease!important;}
.center-nav a::after,.hg-nav.center-nav a::after{content:''!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:1px!important;background:var(--hg-menu-fg)!important;transform:scaleX(0)!important;transform-origin:left!important;transition:transform .3s cubic-bezier(.2,.7,.2,1)!important;}
.center-nav a:hover,.center-nav .current-menu-item>a,.center-nav a[aria-current="page"],.hg-nav.center-nav a:hover,.hg-nav.center-nav .current-menu-item>a,.hg-nav.center-nav a[aria-current="page"]{color:var(--hg-menu-fg)!important;background:transparent!important;border:0!important;}
.center-nav a:hover::after,.center-nav .current-menu-item>a::after,.center-nav a[aria-current="page"]::after,.hg-nav.center-nav a:hover::after,.hg-nav.center-nav .current-menu-item>a::after,.hg-nav.center-nav a[aria-current="page"]::after{transform:scaleX(1)!important;}
.hg-header-right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:16px!important;}
.hg-theme-btn,.hg-burger{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;color:var(--hg-menu-fg)!important;padding:0!important;}
.hg-theme-btn:hover,.hg-theme-btn:focus,.hg-theme-btn:active,.hg-burger:hover,.hg-burger:focus,.hg-burger:active{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--hg-menu-fg)!important;opacity:.65!important;}
.hg-burger span{background:var(--hg-menu-fg)!important;}

/* Info button — full, stable, no blue, +/− states */
.hg-project-side{display:flex!important;align-items:center!important;gap:14px!important;}
.hg-acc-toggle{appearance:none!important;-webkit-appearance:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:var(--fg)!important;color:var(--bg)!important;min-height:34px!important;padding:0 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;line-height:1!important;text-decoration:none!important;transition:opacity .2s ease!important;}
.hg-acc-toggle:hover,.hg-acc-toggle:focus,.hg-acc-toggle:active,.hg-acc-toggle.open{background:var(--fg)!important;color:var(--bg)!important;border:0!important;box-shadow:none!important;outline:0!important;opacity:.84!important;transform:none!important;}
.hg-acc-toggle-label{font-family:'Instrument Sans',system-ui,sans-serif!important;font-size:10px!important;font-weight:500!important;letter-spacing:.13em!important;text-transform:uppercase!important;color:inherit!important;line-height:1!important;}
.hg-acc-toggle-icon{font-family:'Instrument Sans',system-ui,sans-serif!important;font-size:14px!important;font-weight:500!important;width:12px!important;height:14px!important;line-height:13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:inherit!important;background:transparent!important;border:0!important;transform:none!important;transition:none!important;}
.hg-acc-toggle:hover .hg-acc-toggle-icon,.hg-acc-toggle:focus .hg-acc-toggle-icon,.hg-acc-toggle:active .hg-acc-toggle-icon,.hg-acc-toggle.open .hg-acc-toggle-icon{color:inherit!important;background:transparent!important;border:0!important;opacity:1!important;transform:none!important;}

/* Footer flat + editable fields rendering */
.hg-footer{border:0!important;border-top:0!important;background:var(--bg)!important;color:var(--fg)!important;padding:58px 48px 28px!important;}
.hg-footer-grid{max-width:1400px!important;margin:0 auto!important;display:grid!important;grid-template-columns:minmax(260px,1.4fr) repeat(3,minmax(160px,.8fr))!important;gap:34px 58px!important;align-items:start!important;border:0!important;}
.hg-footer-col{border:0!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:7px!important;align-items:flex-start!important;}
.hg-footer-col .mono{font-size:10px!important;letter-spacing:.13em!important;text-transform:uppercase!important;color:var(--muted)!important;margin:0 0 7px!important;}
.hg-footer-col a,.hg-footer-col span,.hg-footer-tagline{font-family:'Instrument Sans',system-ui,sans-serif!important;font-size:13px!important;line-height:1.45!important;color:var(--muted2)!important;text-decoration:none!important;}
.hg-footer-col a:hover{color:var(--fg)!important;}
.hg-footer-tagline{max-width:280px!important;margin:8px 0 0!important;}
.hg-footer-colophon{max-width:1400px!important;margin:44px auto 0!important;padding:0!important;border:0!important;border-top:0!important;display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:24px!important;font-size:12px!important;color:var(--muted)!important;}
.hg-footer-colophon .serif{font-size:18px!important;color:var(--fg)!important;}
@media(max-width:720px){.hg-header{padding:0 20px!important}.hg-brand-sep,.hg-brand-sub,.center-nav,.hg-nav.center-nav{display:none!important}.hg-burger{display:flex!important}.hg-footer{padding:42px 20px 24px!important}.hg-footer-grid{grid-template-columns:1fr!important;gap:24px!important}.hg-footer-colophon{flex-direction:column!important;align-items:flex-start!important;margin-top:32px!important}.hg-project-side{width:100%!important;justify-content:space-between!important}.hg-acc-toggle{min-height:34px!important;padding:0 12px!important}}

/* =========================================================
   HG TRUE FINAL OVERRIDE — flat menu + centered Info button
   ========================================================= */
:root{--hg-ui-bg:#F0EBE3;--hg-ui-fg:#111;--hg-ui-muted:rgba(17,17,17,.42);--hg-ui-rule:rgba(17,17,17,.12)}
html[data-theme="dark"]{--hg-ui-bg:#111;--hg-ui-fg:#F0EBE3;--hg-ui-muted:rgba(240,235,227,.44);--hg-ui-rule:rgba(240,235,227,.16)}
body .hg-header,body.home .hg-header,body.page .hg-header,body.single .hg-header{height:64px!important;min-height:64px!important;padding:0 48px!important;background:var(--hg-ui-bg)!important;color:var(--hg-ui-fg)!important;border:0!important;border-bottom:1px solid var(--hg-ui-rule)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body .hg-header-inner{height:64px!important;min-height:64px!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important}
body .hg-nav.center-nav,body .center-nav{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;width:auto!important;min-width:0!important;height:auto!important}
body .hg-nav.center-nav ul,body .center-nav ul{display:flex!important;align-items:center!important;gap:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;list-style:none!important}
body .hg-nav.center-nav li,body .center-nav li{display:flex!important;align-items:center!important;list-style:none!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important}
body .hg-nav.center-nav li:not(:last-child)::after,body .center-nav li:not(:last-child)::after{content:''!important;display:block!important;width:1px!important;height:14px!important;margin:0 18px!important;background:var(--hg-ui-rule)!important;opacity:1!important}
body .hg-nav.center-nav a,body .center-nav a,body.home .hg-nav.center-nav a,body.home .center-nav a{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0 0 5px!important;margin:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--hg-ui-muted)!important;font-family:'Instrument Serif',Georgia,serif!important;font-style:italic!important;font-size:20px!important;font-weight:400!important;line-height:1!important;letter-spacing:-.01em!important;text-decoration:none!important;transform:none!important;transition:color .2s ease,opacity .2s ease!important}
body .hg-nav.center-nav a::after,body .center-nav a::after{content:''!important;display:block!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:1px!important;background:var(--hg-ui-fg)!important;transform:scaleX(0)!important;transform-origin:left!important;transition:transform .28s cubic-bezier(.2,.7,.2,1)!important}
body .hg-nav.center-nav a:hover,body .center-nav a:hover,body .hg-nav.center-nav .current-menu-item>a,body .center-nav .current-menu-item>a,body .hg-nav.center-nav a[aria-current="page"],body .center-nav a[aria-current="page"]{color:var(--hg-ui-fg)!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;font-size:20px!important}
body .hg-nav.center-nav a:hover::after,body .center-nav a:hover::after,body .hg-nav.center-nav .current-menu-item>a::after,body .center-nav .current-menu-item>a::after,body .hg-nav.center-nav a[aria-current="page"]::after,body .center-nav a[aria-current="page"]::after{transform:scaleX(1)!important}
body .hg-project-meta.hg-project-meta-final,body .hg-project-meta{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:18px!important;min-height:52px!important;padding:0 28px!important;border-top:1px solid var(--rule)!important;border-bottom:1px solid var(--rule)!important}
body .hg-project-mainline{grid-column:1!important;justify-self:start!important;min-width:0!important;display:flex!important;align-items:baseline!important;gap:10px!important;line-height:1!important}
body .hg-project-rightmeta{grid-column:3!important;justify-self:end!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:18px!important;min-width:0!important}
body .hg-project-cat,body .hg-project-year{font-size:11px!important;line-height:1!important;color:var(--muted2)!important;white-space:nowrap!important}
body .hg-acc-toggle{grid-column:2!important;justify-self:center!important;appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-width:92px!important;min-height:34px!important;padding:0 14px!important;margin:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:var(--hg-ui-fg)!important;color:var(--hg-ui-bg)!important;text-decoration:none!important;line-height:1!important;transform:none!important;transition:opacity .2s ease,transform .2s ease!important}
body .hg-acc-toggle:hover,body .hg-acc-toggle:focus,body .hg-acc-toggle:active,body .hg-acc-toggle.open{background:var(--hg-ui-fg)!important;color:var(--hg-ui-bg)!important;border:0!important;box-shadow:none!important;outline:0!important;opacity:.82!important;transform:translateY(-1px)!important}
body .hg-acc-toggle.open{opacity:1!important}
body .hg-acc-toggle-label{font-family:'Instrument Sans',system-ui,sans-serif!important;font-size:10px!important;font-weight:500!important;line-height:1!important;letter-spacing:.13em!important;text-transform:uppercase!important;color:inherit!important}
body .hg-acc-toggle-icon,body .hg-acc-toggle:hover .hg-acc-toggle-icon,body .hg-acc-toggle:focus .hg-acc-toggle-icon,body .hg-acc-toggle:active .hg-acc-toggle-icon,body .hg-acc-toggle.open .hg-acc-toggle-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:12px!important;height:12px!important;border:0!important;background:transparent!important;color:inherit!important;font-family:'Instrument Sans',system-ui,sans-serif!important;font-size:14px!important;font-weight:500!important;line-height:1!important;opacity:1!important;transform:none!important}
@media(max-width:720px){body .hg-header{padding:0 20px!important}body .center-nav,body .hg-nav.center-nav{display:none!important}body .hg-project-meta.hg-project-meta-final,body .hg-project-meta{grid-template-columns:1fr auto!important;gap:12px!important;min-height:0!important;padding:12px 20px!important}body .hg-project-mainline{grid-column:1 / -1!important}body .hg-acc-toggle{grid-column:2!important;grid-row:2!important;justify-self:end!important;min-width:86px!important}body .hg-project-rightmeta{grid-column:1!important;grid-row:2!important;justify-self:start!important;gap:14px!important}}


/* =========================================================
   HG PATCH — Info button square, clickable and stable
   ========================================================= */
body .hg-project-meta.hg-project-meta-final,
body .hg-project-meta{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:18px !important;
}
body .hg-acc-toggle,
body .hg-acc-toggle:hover,
body .hg-acc-toggle:focus,
body .hg-acc-toggle:active,
body .hg-acc-toggle.open{
  grid-column:2 !important;
  justify-self:center !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:96px !important;
  min-width:96px !important;
  max-width:96px !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:var(--fg) !important;
  color:var(--bg) !important;
  font-family:'Instrument Sans',system-ui,sans-serif !important;
  font-size:10px !important;
  font-style:normal !important;
  font-weight:600 !important;
  font-variation-settings:'wght' 600 !important;
  letter-spacing:.115em !important;
  text-transform:uppercase !important;
  line-height:1 !important;
  text-align:center !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  opacity:1 !important;
  transform:none !important;
  filter:none !important;
  transition:background-color .18s ease,color .18s ease,opacity .18s ease !important;
  will-change:auto !important;
  -webkit-tap-highlight-color:transparent !important;
}
body .hg-acc-toggle:hover,
body .hg-acc-toggle:focus-visible{
  opacity:.82 !important;
}
body .hg-acc-toggle:active{
  opacity:1 !important;
}
body .hg-acc-toggle.open{
  opacity:1 !important;
}
@media(max-width:720px){
  body .hg-project-meta.hg-project-meta-final,
  body .hg-project-meta{
    grid-template-columns:1fr auto !important;
    gap:12px !important;
    padding:12px 20px !important;
  }
  body .hg-project-mainline{
    grid-column:1 / -1 !important;
    justify-self:start !important;
  }
  body .hg-acc-toggle,
  body .hg-acc-toggle:hover,
  body .hg-acc-toggle:focus,
  body .hg-acc-toggle:active,
  body .hg-acc-toggle.open{
    grid-column:2 !important;
    grid-row:2 !important;
    justify-self:end !important;
    width:92px !important;
    min-width:92px !important;
    max-width:92px !important;
  }
  body .hg-project-rightmeta{
    grid-column:1 !important;
    grid-row:2 !important;
    justify-self:start !important;
    min-width:0 !important;
  }
}


/* =========================================================
   HG DEVICE MOCKUP — preview sites web dans les projets
   ========================================================= */
.hg-device-section{
  max-width:1280px;
  margin:0 auto;
  padding:0 28px 54px;
  color:var(--fg);
}
.hg-device-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 0 18px;
}
.hg-device-toggle{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid var(--rule2);
  border-radius:999px;
  background:rgba(17,17,17,.035);
}
.hg-dt-btn{
  min-width:82px;
  height:30px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:600;
  color:var(--muted2);
  transition:background-color .22s var(--ease),color .22s var(--ease),opacity .22s var(--ease);
}
.hg-dt-btn:hover{color:var(--fg)}
.hg-dt-btn.is-active{background:var(--fg);color:var(--bg)}
.hg-device-stage{
  display:flex;
  justify-content:center;
  width:100%;
}
.hg-device-frame{
  position:relative;
  width:min(100%,360px);
  padding:18px 12px 26px;
  border-radius:36px;
  background:#1a1a1a;
  box-shadow:0 26px 80px rgba(17,17,17,.16);
  transition:width .48s cubic-bezier(.4,0,.2,1),border-radius .48s cubic-bezier(.4,0,.2,1),padding .48s cubic-bezier(.4,0,.2,1),box-shadow .48s cubic-bezier(.4,0,.2,1);
  overflow:hidden;
}
.hg-device-frame::before{
  content:'';
  position:absolute;
  z-index:3;
  top:8px;
  left:50%;
  width:92px;
  height:18px;
  border-radius:999px;
  background:#050505;
  transform:translateX(-50%);
  opacity:1;
  transition:opacity .24s var(--ease),transform .48s cubic-bezier(.4,0,.2,1);
}
.hg-device-frame::after{
  content:'';
  position:absolute;
  z-index:3;
  left:50%;
  bottom:9px;
  width:112px;
  height:4px;
  border-radius:999px;
  background:rgba(240,235,227,.58);
  transform:translateX(-50%);
  opacity:1;
  transition:opacity .24s var(--ease),transform .48s cubic-bezier(.4,0,.2,1);
}
.hg-device-desktop,
.hg-device-section[data-device-mode="desktop"] .hg-device-frame{
  width:min(100%,1040px);
  padding:34px 10px 10px;
  border-radius:10px;
  box-shadow:0 26px 80px rgba(17,17,17,.12);
}
.hg-device-desktop::before,
.hg-device-desktop::after,
.hg-device-section[data-device-mode="desktop"] .hg-device-frame::before,
.hg-device-section[data-device-mode="desktop"] .hg-device-frame::after{
  opacity:0;
  transform:translateX(-50%) scale(.85);
  pointer-events:none;
}
.hg-device-dots{
  position:absolute;
  z-index:4;
  top:12px;
  left:14px;
  display:flex;
  gap:7px;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .22s var(--ease),transform .22s var(--ease);
}
.hg-device-dots span{
  width:9px;
  height:9px;
  border-radius:50%;
  display:block;
}
.hg-device-dots span:nth-child(1){background:#ff5f57}
.hg-device-dots span:nth-child(2){background:#ffbd2e}
.hg-device-dots span:nth-child(3){background:#28c840}
.hg-device-desktop .hg-device-dots,
.hg-device-section[data-device-mode="desktop"] .hg-device-dots{
  opacity:1;
  transform:translateY(0);
}
.hg-device-screen{
  position:relative;
  height:560px;
  overflow:hidden;
  border-radius:24px;
  background:#111;
  transition:height .48s cubic-bezier(.4,0,.2,1),border-radius .48s cubic-bezier(.4,0,.2,1);
}
.hg-device-desktop .hg-device-screen,
.hg-device-section[data-device-mode="desktop"] .hg-device-screen{
  height:460px;
  border-radius:4px;
}
.hg-device-iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
  background:#fff;
  opacity:0;
  transition:opacity .28s var(--ease);
}
.hg-device-iframe.is-loaded{opacity:1}
.hg-device-loading,
.hg-device-fallback{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px;
  color:rgba(240,235,227,.72);
  background:#111;
}
.hg-device-loading[hidden],
.hg-device-fallback[hidden]{display:none}
.hg-device-fallback a{
  color:#F0EBE3;
  border-bottom:1px solid rgba(240,235,227,.45);
  padding-bottom:2px;
  transition:opacity var(--fast);
}
.hg-device-fallback a:hover{opacity:.72}
.hg-device-link{
  width:max-content;
  max-width:100%;
  display:flex;
  justify-content:center;
  margin:16px auto 0;
  padding-bottom:3px;
  border-bottom:1px solid var(--rule2);
  transition:color var(--fast),border-color var(--fast),opacity var(--fast);
}
.hg-device-link:hover{color:var(--fg);border-color:var(--fg);opacity:.78}
html[data-theme="dark"] .hg-device-toggle{background:rgba(240,235,227,.045)}
html[data-theme="dark"] .hg-device-frame{box-shadow:0 26px 80px rgba(0,0,0,.34)}
html[data-theme="dark"] .hg-device-section{color:#F0EBE3}
@media(max-width:720px){
  .hg-device-section{padding-left:20px;padding-right:20px;padding-bottom:42px}
  .hg-device-head{align-items:flex-start;flex-direction:column;gap:12px}
  .hg-device-toggle{width:100%}
  .hg-dt-btn{flex:1;min-width:0}
  .hg-device-frame{width:min(100%,342px)}
  .hg-device-section[data-device-mode="desktop"] .hg-device-stage{overflow-x:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch;padding-bottom:4px}
  .hg-device-section[data-device-mode="desktop"] .hg-device-frame{width:760px;min-width:760px}
}

/* =========================================================
   HG V3 — homepage website preview inside project accordion
   ========================================================= */
.hg-project-card:has(.hg-device-section--home) .hg-accordion.open{
  max-height:1280px!important;
}
.hg-home-device-wrap{
  grid-column:1 / -1!important;
  border-top:1px solid var(--rule)!important;
  padding-top:24px!important;
  margin-top:2px!important;
}
.hg-device-section--home{
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
}
.hg-device-section--home .hg-device-head{
  margin-bottom:14px!important;
}
.hg-device-section--home .hg-device-stage{
  justify-content:center!important;
  overflow:hidden!important;
}
.hg-device-section--home .hg-device-frame{
  width:min(100%,840px)!important;
  padding:28px 10px 10px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.hg-device-section--home[data-device-mode="mobile"] .hg-device-frame{
  width:min(100%,330px)!important;
  padding:14px 10px 22px!important;
  border-radius:32px!important;
}
.hg-device-section--home .hg-device-frame::before,
.hg-device-section--home .hg-device-frame::after{
  display:none!important;
}
.hg-device-section--home[data-device-mode="mobile"] .hg-device-frame::before,
.hg-device-section--home[data-device-mode="mobile"] .hg-device-frame::after{
  display:block!important;
}
.hg-device-section--home .hg-device-dots{
  opacity:1!important;
  transform:none!important;
}
.hg-device-section--home[data-device-mode="mobile"] .hg-device-dots{
  opacity:0!important;
  transform:translateY(-4px)!important;
}
.hg-device-section--home .hg-device-screen{
  height:340px!important;
  border-radius:5px!important;
}
.hg-device-section--home[data-device-mode="mobile"] .hg-device-screen{
  height:480px!important;
  border-radius:22px!important;
}
.hg-device-section--home .hg-device-link{
  margin-top:13px!important;
}
html[data-theme="dark"] .hg-home-device-wrap{
  border-top-color:rgba(240,235,227,.12)!important;
}
@media(max-width:860px){
  .hg-project-card:has(.hg-device-section--home) .hg-accordion.open{max-height:1500px!important;}
  .hg-home-device-wrap{padding-top:20px!important;}
  .hg-device-section--home .hg-device-head{align-items:flex-start!important;flex-direction:column!important;gap:12px!important;}
  .hg-device-section--home .hg-device-toggle{width:100%!important;}
  .hg-device-section--home .hg-dt-btn{flex:1!important;min-width:0!important;}
  .hg-device-section--home[data-device-mode="desktop"] .hg-device-stage{overflow-x:auto!important;justify-content:flex-start!important;-webkit-overflow-scrolling:touch!important;padding-bottom:4px!important;}
  .hg-device-section--home[data-device-mode="desktop"] .hg-device-frame{width:720px!important;min-width:720px!important;}
  .hg-device-section--home .hg-device-screen{height:320px!important;}
  .hg-device-section--home[data-device-mode="mobile"] .hg-device-stage{justify-content:center!important;overflow:hidden!important;}
  .hg-device-section--home[data-device-mode="mobile"] .hg-device-frame{width:min(100%,320px)!important;min-width:0!important;}
  .hg-device-section--home[data-device-mode="mobile"] .hg-device-screen{height:460px!important;}
}
@media(max-width:520px){
  .hg-project-card:has(.hg-device-section--home) .hg-accordion.open{max-height:1650px!important;}
  .hg-device-section--home[data-device-mode="desktop"] .hg-device-frame{width:640px!important;min-width:640px!important;}
  .hg-device-section--home .hg-device-screen{height:300px!important;}
  .hg-device-section--home[data-device-mode="mobile"] .hg-device-frame{width:min(100%,300px)!important;}
  .hg-device-section--home[data-device-mode="mobile"] .hg-device-screen{height:430px!important;}
}
/* Keep accordions tall enough when the home preview is present. */
.hg-accordion.open{max-height:1280px!important;}
@media(max-width:860px){.hg-accordion.open{max-height:1500px!important;}}
@media(max-width:520px){.hg-accordion.open{max-height:1650px!important;}}


/* HG contact form submit fix */
.hg-honeypot{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.hg-notice.success,.hg-notice.hg-notice-success{background:#17331d;color:#cff0d4;border-color:rgba(207,240,212,.25)}
.hg-notice.error,.hg-notice.hg-notice-error{background:#411919;color:#ffd0d0;border-color:rgba(255,208,208,.25)}
html[data-theme="dark"] .hg-notice.success,html[data-theme="dark"] .hg-notice.hg-notice-success{background:rgba(207,240,212,.08);color:#cff0d4;border-color:rgba(207,240,212,.25)}
html[data-theme="dark"] .hg-notice.error,html[data-theme="dark"] .hg-notice.hg-notice-error{background:rgba(255,208,208,.08);color:#ffd0d0;border-color:rgba(255,208,208,.25)}


/* =========================================================
   HG V62 — Image / Texte switch, based on V61 root hover fix
   ========================================================= */
.hg-filters-row--with-view{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  width:100%!important;
  margin-top:10px!important;
}
.hg-filters-row--with-view .hg-filters{margin-top:0!important;}
.hg-view-switch{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
  color:var(--muted2)!important;
}
.hg-view-switch-btn{
  position:relative!important;
  padding:0 0 3px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--muted2)!important;
  font-size:11px!important;
  line-height:1!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  box-shadow:none!important;
}
.hg-view-switch-btn::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:var(--fg);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .22s var(--ease);
}
.hg-view-switch-btn.is-active{color:var(--fg)!important;}
.hg-view-switch-btn.is-active::after{transform:scaleX(1);}

.hg-project-text-index{
  display:none;
  padding:0 28px 70px;
  background:var(--bg);
  color:var(--fg);
}
body.hg-view-text .hg-project-text-index{display:block;}
body.hg-view-text .hg-projects{display:none!important;}
.hg-text-preview-sticky{
  position:sticky;
  top:calc(56px + 104px);
  z-index:38;
  background:var(--bg);
  padding:14px 0 18px;
  border-bottom:1px solid var(--rule);
}
.hg-text-preview-strip{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  height:260px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
}
.hg-text-preview-strip::-webkit-scrollbar{display:none;}
.hg-text-preview-strip .hg-tile,
.hg-text-preview-strip .hg-tile-placeholder{
  flex:0 0 auto;
  height:100%;
  aspect-ratio:var(--ratio,16/9);
  background:var(--bg2);
  overflow:hidden;
  cursor:default!important;
}
.hg-text-preview-strip .hg-tile img,
.hg-text-preview-strip .hg-tile video{
  width:100%;height:100%;object-fit:cover;display:block;pointer-events:none!important;
}
.hg-text-preview-strip .hg-video-play,
.hg-text-preview-strip .hg-video-label{display:none!important;}
.hg-text-list{
  display:flex;
  flex-direction:column;
  gap:0;
  padding-top:20px;
}
.hg-text-project{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:baseline;
  padding:16px 0 18px;
  border-bottom:1px solid var(--rule);
  color:var(--fg);
  text-align:left;
  background:transparent;
  border-radius:0!important;
}
.hg-text-project-title{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  font-size:clamp(34px,5.8vw,92px);
  line-height:.92;
  letter-spacing:-.055em;
}
.hg-text-project-meta{
  font-size:10px!important;
  letter-spacing:.14em!important;
  text-transform:uppercase;
  color:var(--muted2);
  white-space:nowrap;
}
.hg-text-list:hover .hg-text-project{opacity:.18;}
.hg-text-list:hover .hg-text-project.is-active,
.hg-text-project.is-active{opacity:1;}
.hg-text-project:hover .hg-text-project-title{letter-spacing:-.065em;}

@media(max-width:720px){
  .hg-filters-row--with-view{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:10px!important;
  }
  .hg-view-switch{gap:12px!important;}
  .hg-view-switch-btn{font-size:10px!important;}
  .hg-project-text-index{padding:0 20px 54px;}
  .hg-text-preview-sticky{
    top:calc(54px + 86px);
    padding:10px 0 14px;
  }
  .hg-text-preview-strip{height:190px;gap:8px;}
  .hg-text-project{
    grid-template-columns:1fr;
    gap:6px;
    padding:14px 0 16px;
  }
  .hg-text-project-title{
    font-size:clamp(38px,13vw,66px);
    line-height:.94;
  }
  .hg-text-list:hover .hg-text-project{opacity:1;}
  .hg-text-project:not(.is-active){opacity:.42;}
}


/* =========================================================
   HG V63 — Mode Texte : preview images sticky complète, non cropée
   ========================================================= */
:root{
  --hg-header-h:56px;
  --hg-text-preview-h:156px;
  --hg-text-controls-h:42px;
}
body:not(.hg-view-text) .hg-text-preview-sticky{display:none!important;}

/* En mode Texte, les images doivent être la première zone sticky sous le header. */
body.hg-view-text .hg-text-preview-sticky{
  display:block!important;
  position:sticky!important;
  top:var(--hg-header-h)!important;
  z-index:80!important;
  width:100%!important;
  min-height:calc(var(--hg-text-preview-h) + 18px)!important;
  height:calc(var(--hg-text-preview-h) + 18px)!important;
  padding:8px 28px 10px!important;
  margin:0!important;
  background:var(--bg)!important;
  color:var(--fg)!important;
  border-bottom:1px solid var(--rule)!important;
  overflow:visible!important;
  transform:none!important;
  box-shadow:none!important;
}
body.hg-view-text .hg-text-preview-strip{
  height:var(--hg-text-preview-h)!important;
  min-height:var(--hg-text-preview-h)!important;
  max-height:var(--hg-text-preview-h)!important;
  width:100%!important;
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0!important;
  margin:0!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-x!important;
  background:transparent!important;
}
body.hg-view-text .hg-text-preview-strip::-webkit-scrollbar{display:none!important;}
body.hg-view-text .hg-text-preview-strip .hg-tile,
body.hg-view-text .hg-text-preview-strip .hg-tile-placeholder{
  flex:0 0 auto!important;
  height:100%!important;
  min-height:100%!important;
  aspect-ratio:var(--ratio,16/9)!important;
  overflow:hidden!important;
  background:var(--bg2)!important;
  border-radius:0!important;
  cursor:default!important;
}
body.hg-view-text .hg-text-preview-strip img,
body.hg-view-text .hg-text-preview-strip video{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  border-radius:0!important;
  opacity:1!important;
  transform:none!important;
  filter:none!important;
}

/* En mode Texte, le hero devient uniquement la barre filtres + Image/Texte, sticky sous les images. */
body.hg-view-text .hg-home-hero{
  position:sticky!important;
  top:calc(var(--hg-header-h) + var(--hg-text-preview-h) + 18px)!important;
  z-index:78!important;
  width:100%!important;
  min-height:var(--hg-text-controls-h)!important;
  height:var(--hg-text-controls-h)!important;
  max-height:var(--hg-text-controls-h)!important;
  padding:0 28px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  background:var(--bg)!important;
  border-bottom:1px solid var(--rule)!important;
  overflow:visible!important;
  transform:none!important;
  box-shadow:none!important;
}
body.hg-view-text .hg-home-hero .hg-h1{display:none!important;}
body.hg-view-text .hg-filters-row--with-view{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
body.hg-view-text .hg-filters-row--with-view .hg-filters{
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
}
body.hg-view-text .hg-filters-row--with-view .hg-filters::-webkit-scrollbar{display:none!important;}
body.hg-view-text .hg-view-switch{margin-left:auto!important;}

/* La liste texte commence sous les deux zones sticky. */
body.hg-view-text .hg-project-text-index{
  display:block!important;
  padding:18px 28px 80px!important;
  margin:0!important;
  background:var(--bg)!important;
  color:var(--fg)!important;
}
body.hg-view-text .hg-text-list{
  padding-top:0!important;
  margin:0!important;
}
body.hg-view-text .hg-text-project{
  min-height:0!important;
  padding:14px 0 16px!important;
  border-bottom:1px solid var(--rule)!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
body.hg-view-text .hg-text-project-title{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  font-size:clamp(46px,6.6vw,112px)!important;
  line-height:.92!important;
  letter-spacing:-.06em!important;
}

@media(max-width:720px){
  :root{
    --hg-header-h:54px;
    --hg-text-preview-h:140px;
    --hg-text-controls-h:72px;
  }
  body.hg-view-text .hg-text-preview-sticky{
    padding:8px 20px 10px!important;
    min-height:calc(var(--hg-text-preview-h) + 18px)!important;
    height:calc(var(--hg-text-preview-h) + 18px)!important;
  }
  body.hg-view-text .hg-text-preview-strip{gap:7px!important;}
  body.hg-view-text .hg-home-hero{
    top:calc(var(--hg-header-h) + var(--hg-text-preview-h) + 18px)!important;
    padding:8px 20px!important;
    align-items:flex-start!important;
  }
  body.hg-view-text .hg-filters-row--with-view{
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:8px!important;
  }
  body.hg-view-text .hg-view-switch{margin-left:0!important;}
  body.hg-view-text .hg-project-text-index{padding:14px 20px 64px!important;}
  body.hg-view-text .hg-text-project-title{
    font-size:clamp(38px,12.5vw,64px)!important;
    line-height:.94!important;
  }
}


/* =========================================================
   HG V64 — Palettes + mode texte verrouillable
   ========================================================= */
.hg-palette-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;}
.hg-palette-btn{width:30px;height:30px;border:1px solid var(--rule2)!important;border-radius:0!important;display:inline-flex;align-items:center;justify-content:center;background:transparent!important;color:var(--fg)!important;transition:background .2s ease,border-color .2s ease,opacity .2s ease!important;}
.hg-palette-btn:hover,.hg-palette-btn[aria-expanded="true"]{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important;}
.hg-palette-icon{width:14px;height:14px;display:block;border:1px solid currentColor;background:linear-gradient(135deg,currentColor 0 49%,transparent 50% 100%);}
.hg-palette-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:260;width:220px;padding:13px;background:var(--bg);color:var(--fg);border:1px solid var(--rule2);box-shadow:0 20px 60px rgba(0,0,0,.12);}
.hg-palette-panel[hidden]{display:none!important;}
.hg-palette-panel-head{margin-bottom:9px;color:var(--muted2)!important;}
.hg-palette-options{display:grid;grid-template-columns:1fr;gap:3px;}
.hg-palette-options button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--rule);font-size:13px;line-height:1;color:var(--muted2);text-align:left;background:transparent!important;border-radius:0!important;}
.hg-palette-options button:hover,.hg-palette-options button.is-active{color:var(--fg);}
.hg-palette-options button.is-active::after{content:"•";font-size:16px;line-height:0;color:var(--fg);}
.hg-palette-custom{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:var(--muted2)!important;}
.hg-palette-custom input{width:34px;height:28px;border:1px solid var(--rule2);background:transparent;padding:0;cursor:pointer;}
.hg-palette-hint{margin-top:11px;color:var(--muted)!important;font-size:9px!important;}

body.hg-view-text .hg-text-preview-sticky{box-sizing:border-box!important;}
body.hg-view-text .hg-text-preview-strip{cursor:grab!important;user-select:none!important;-webkit-user-select:none!important;overscroll-behavior-x:contain!important;}
body.hg-view-text .hg-text-preview-strip.dragging{cursor:grabbing!important;scroll-snap-type:none!important;}
body.hg-view-text .hg-text-preview-strip .hg-tile,body.hg-view-text .hg-text-preview-strip .hg-tile-placeholder{cursor:grab!important;}
.hg-text-preview-tools{position:absolute;right:28px;bottom:16px;z-index:2;display:flex;align-items:center;gap:8px;pointer-events:auto;}
.hg-text-lock-btn,.hg-text-view-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;padding:0 12px!important;border:1px solid var(--rule2)!important;background:color-mix(in srgb,var(--bg) 84%,transparent)!important;color:var(--fg)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:10px!important;line-height:1!important;letter-spacing:.12em!important;text-transform:uppercase!important;border-radius:0!important;box-shadow:none!important;text-decoration:none!important;white-space:nowrap!important;}
.hg-text-lock-btn:hover,.hg-text-view-btn:hover{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important;opacity:1!important;}
.hg-text-lock-btn[aria-pressed="true"]{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important;}
body.hg-view-text .hg-text-project{transition:opacity .2s ease,color .2s ease,transform .2s ease!important;}
body.hg-view-text .hg-text-project.is-locked .hg-text-project-title::after{content:" verrouillé";font-family:'Instrument Sans',system-ui,sans-serif!important;font-style:normal!important;font-size:10px!important;letter-spacing:.13em!important;text-transform:uppercase!important;margin-left:14px;color:var(--muted2);vertical-align:middle;}
@media(max-width:720px){
  .hg-palette-panel{right:-46px;width:min(240px,calc(100vw - 28px));}
  .hg-text-preview-tools{right:20px;bottom:14px;gap:6px;}
  .hg-text-lock-btn,.hg-text-view-btn{min-height:28px!important;padding:0 9px!important;font-size:9px!important;}
  body.hg-view-text .hg-text-project.is-locked .hg-text-project-title::after{display:block;margin:7px 0 0;font-size:9px!important;}
}


/* =========================================================
   HG V65 — couleurs restaurées comme V58 + aperçu images robuste
   ========================================================= */
html[data-palette]{background:var(--bg)!important;color:var(--fg)!important;}
html[data-palette] body,
html[data-palette] .hg-header,
html[data-palette] .hg-mobile-panel,
html[data-palette] .hg-home-hero,
html[data-palette] .hg-project-text-index,
html[data-palette] .hg-text-preview-sticky,
html[data-palette] .hg-footer,
html[data-palette] .hg-palette-panel{background:var(--bg)!important;color:var(--fg)!important;}
html[data-palette] .hg-logo-star,
html[data-palette] .hg-brand,
html[data-palette] .hg-project-name,
html[data-palette] .hg-h1,
html[data-palette] .hg-text-project-title{color:var(--fg)!important;}
html[data-palette] .hg-brand-sep,
html[data-palette] .hg-filter.active::after,
html[data-palette] .hg-nav.center-nav a::after,
html[data-palette] .center-nav a::after,
html[data-palette] .hg-strip-progress span{background:var(--fg)!important;}
html[data-palette] .hg-acc-toggle,
html[data-palette] .hg-view-btn,
html[data-palette] .hg-text-lock-btn,
html[data-palette] .hg-text-view-btn,
html[data-palette] .hg-device-load-btn{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important;}
html[data-palette] .hg-filter,
html[data-palette] .hg-filter sup,
html[data-palette] .hg-project-client,
html[data-palette] .hg-project-cat,
html[data-palette] .hg-project-year,
html[data-palette] .hg-brand-sub,
html[data-palette] .hg-text-project-meta{color:var(--muted)!important;}
html[data-palette] .hg-filter.active,
html[data-palette] .hg-nav.center-nav a:hover,
html[data-palette] .hg-nav.center-nav .current-menu-item>a,
html[data-palette] .center-nav a:hover{color:var(--fg)!important;}
.hg-header .hg-palette-control{position:relative!important;z-index:280!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;}
.hg-header .hg-palette-btn,#hg-palette-btn{position:relative!important;display:block!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;filter:none!important;background:linear-gradient(135deg,var(--palette-bg,var(--bg)) 0 49.75%,var(--palette-fg,var(--fg)) 50.25% 100%)!important;color:transparent!important;cursor:pointer!important;overflow:hidden!important;transform:none!important;}
.hg-header .hg-palette-btn:hover,.hg-header .hg-palette-btn:focus,.hg-header .hg-palette-btn:focus-visible,.hg-header .hg-palette-btn[aria-expanded="true"]{opacity:1!important;border:0!important;outline:0!important;box-shadow:none!important;filter:none!important;transform:none!important;background:linear-gradient(135deg,var(--palette-bg,var(--bg)) 0 49.75%,var(--palette-fg,var(--fg)) 50.25% 100%)!important;color:transparent!important;}
.hg-header .hg-palette-btn::before,.hg-header .hg-palette-btn::after,.hg-header .hg-palette-dot,#hg-palette-btn .hg-palette-dot,.hg-palette-icon{content:none!important;display:none!important;}
.hg-palette-panel{position:absolute!important;right:0!important;top:calc(100% + 12px)!important;z-index:300!important;width:min(340px,calc(100vw - 28px))!important;padding:14px!important;border:1px solid var(--rule2)!important;border-radius:0!important;box-shadow:0 28px 90px rgba(0,0,0,.12)!important;background:var(--bg)!important;color:var(--fg)!important;}
.hg-palette-panel[hidden]{display:none!important;}
.hg-palette-head{margin-bottom:12px!important;}
.hg-palette-title{font-size:10px!important;letter-spacing:.16em!important;text-transform:uppercase!important;color:var(--fg)!important;margin-bottom:4px!important;}
.hg-palette-head p,.hg-palette-note{font-size:12px!important;line-height:1.35!important;color:var(--muted2)!important;margin:0!important;}
.hg-palette-presets{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:12px 0!important;}
.hg-palette-presets button{min-height:38px!important;border:1px solid var(--rule)!important;border-radius:0!important;background:transparent!important;color:var(--fg)!important;display:flex!important;align-items:center!important;gap:8px!important;padding:8px!important;cursor:pointer!important;text-align:left!important;box-shadow:none!important;}
.hg-palette-presets button:hover,.hg-palette-presets button.is-active{border-color:var(--fg)!important;}
.hg-palette-presets button span{width:34px!important;height:18px!important;border:0!important;border-radius:0!important;background:linear-gradient(135deg,var(--sw-bg) 0 49.75%,var(--sw-fg) 50.25% 100%)!important;display:block!important;padding:0!important;box-shadow:none!important;flex:0 0 auto!important;}
.hg-palette-presets button span::before,.hg-palette-presets button span::after{content:none!important;display:none!important;}
.hg-palette-presets em{font-style:normal!important;font-size:10px!important;letter-spacing:.11em!important;text-transform:uppercase!important;color:var(--muted2)!important;}
.hg-palette-custom{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;border-top:1px solid var(--rule)!important;padding-top:12px!important;margin-top:10px!important;}
.hg-palette-custom-title{grid-column:1/-1!important;font-size:10px!important;letter-spacing:.16em!important;text-transform:uppercase!important;color:var(--muted)!important;}
.hg-palette-custom label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;border:1px solid var(--rule)!important;border-radius:0!important;padding:8px!important;font-size:11px!important;text-transform:uppercase!important;letter-spacing:.12em!important;color:var(--muted2)!important;box-shadow:none!important;}
.hg-palette-custom input[type="color"],#hg-palette-bg,#hg-palette-fg{width:30px!important;height:24px!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;box-shadow:none!important;overflow:hidden!important;}
.hg-palette-custom input[type="color"]::-webkit-color-swatch-wrapper,#hg-palette-bg::-webkit-color-swatch-wrapper,#hg-palette-fg::-webkit-color-swatch-wrapper{padding:0!important;border-radius:0!important;}
.hg-palette-custom input[type="color"]::-webkit-color-swatch,#hg-palette-bg::-webkit-color-swatch,#hg-palette-fg::-webkit-color-swatch{border-radius:0!important;border:1px solid var(--rule2)!important;}
.hg-palette-custom input[type="color"]::-moz-color-swatch,#hg-palette-bg::-moz-color-swatch,#hg-palette-fg::-moz-color-swatch{border-radius:0!important;border:1px solid var(--rule2)!important;}
.hg-palette-custom button{min-height:34px!important;border:1px solid var(--rule2)!important;border-radius:0!important;background:transparent!important;color:var(--fg)!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.12em!important;cursor:pointer!important;box-shadow:none!important;}
.hg-palette-custom button:hover{background:var(--fg)!important;color:var(--bg)!important;}
.hg-palette-preview{margin-top:12px!important;padding:12px!important;border:1px solid var(--rule)!important;border-radius:0!important;background:var(--preview-bg,var(--bg))!important;color:var(--preview-fg,var(--fg))!important;box-shadow:none!important;}
.hg-palette-preview span{display:block!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.14em!important;opacity:.55!important;margin-bottom:5px!important;}
.hg-palette-preview strong{font-family:'Instrument Serif',Georgia,serif!important;font-style:italic!important;font-size:28px!important;font-weight:400!important;letter-spacing:-.04em!important;}
.hg-text-preview-strip img{background:var(--bg2)!important;}
@media(max-width:760px){.hg-palette-panel{right:-42px!important;width:min(340px,calc(100vw - 28px))!important;}.hg-palette-presets{grid-template-columns:1fr!important;}}

/* =========================================================
   HG V67 — SEO intro stable + hover sans décalage + preview texte zoomable
   ========================================================= */
.hg-home-seo{
  max-width:760px!important;
  min-height:44px!important;
  margin:12px 0 0!important;
  color:var(--muted2)!important;
  font-size:14px!important;
  line-height:1.5!important;
  letter-spacing:-.01em!important;
  transition:opacity .18s ease!important;
}
.hg-home-seo p{margin:0!important;max-width:64ch!important;}
body.hg-home-project-hover .hg-home-seo{opacity:0!important;pointer-events:none!important;}
@media(min-width:761px){
  body.home .hg-h1{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-height:1em!important;}
  body.home:not(.hg-view-text) .hg-tile img,
  body.home:not(.hg-view-text) .hg-tile video{transform:none!important;transition:opacity .22s ease!important;}
  body.home:not(.hg-view-text) .hg-tile:hover img,
  body.home:not(.hg-view-text) .hg-tile:hover video{transform:none!important;}
}
@media(max-width:720px){
  .hg-home-seo{font-size:12px!important;line-height:1.45!important;min-height:54px!important;margin-top:10px!important;}
}
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb]{cursor:zoom-in!important;}
body.hg-view-text .hg-text-preview-strip.dragging .hg-tile[data-lb]{cursor:grabbing!important;}
body.hg-view-text .hg-text-preview-strip .hg-tile img,
body.hg-view-text .hg-text-preview-strip .hg-tile video{pointer-events:none!important;}

/* =========================================================
   HG V68 — texte façon références + zones fixes sans micro-scroll
   ========================================================= */
:root{--hg-home-hero-h:168px;}
body.home .fade-in{animation:none!important;transform:none!important;}
body.home .hg-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:120!important;
  transform:none!important;
  will-change:auto!important;
}
body.home{padding-top:var(--hg-header-h)!important;}
body.home:not(.hg-view-text) .hg-home-hero{
  position:fixed!important;
  top:var(--hg-header-h)!important;
  left:0!important;
  right:0!important;
  z-index:90!important;
  transform:none!important;
  will-change:auto!important;
  backface-visibility:hidden!important;
  contain:layout paint style!important;
}
body.home:not(.hg-view-text) .hg-projects{
  padding-top:calc(var(--hg-home-hero-h,168px) + 20px)!important;
}
body.home:not(.hg-view-text) .hg-tile,
body.home:not(.hg-view-text) .hg-tile img,
body.home:not(.hg-view-text) .hg-tile video{
  transform:none!important;
  translate:none!important;
}

body.hg-view-text .hg-home-seo{display:none!important;}
body.hg-view-text .hg-text-preview-sticky{
  position:fixed!important;
  top:var(--hg-header-h)!important;
  left:0!important;
  right:0!important;
  z-index:95!important;
  transform:none!important;
  will-change:auto!important;
  backface-visibility:hidden!important;
  contain:layout paint style!important;
}
body.hg-view-text .hg-home-hero{
  position:fixed!important;
  top:calc(var(--hg-header-h) + var(--hg-text-preview-h) + 18px)!important;
  left:0!important;
  right:0!important;
  z-index:92!important;
  transform:none!important;
  will-change:auto!important;
  backface-visibility:hidden!important;
  contain:layout paint style!important;
}
body.hg-view-text .hg-project-text-index{
  padding-top:calc(var(--hg-text-preview-h) + 18px + var(--hg-text-controls-h) + 22px)!important;
}
body.hg-view-text .hg-text-preview-strip .hg-tile,
body.hg-view-text .hg-text-preview-strip .hg-tile-placeholder{
  min-width:auto!important;
  background:var(--bg2)!important;
}
body.hg-view-text .hg-text-preview-strip .hg-tile.is-overview-tile::after{
  content:attr(data-project-title);
  position:absolute;
  left:8px;
  right:8px;
  bottom:7px;
  z-index:2;
  color:#F0EBE3;
  font-size:9px;
  line-height:1.05;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:0 1px 10px rgba(0,0,0,.7);
  opacity:.88;
  pointer-events:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.hg-view-text .hg-text-preview-placeholder{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  padding:10px!important;
  background:color-mix(in srgb,var(--fg) 8%,var(--bg))!important;
}

body.hg-view-text .hg-text-list{
  display:block!important;
  width:100%!important;
  padding:0!important;
  margin:0!important;
  font-size:0!important;
  line-height:0!important;
}
body.hg-view-text .hg-text-project{
  display:inline!important;
  width:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--muted)!important;
  opacity:.42!important;
  text-align:left!important;
  cursor:pointer!important;
  transition:opacity .18s ease,color .18s ease!important;
}
body.hg-view-text .hg-text-project[hidden]{display:none!important;}
body.hg-view-text .hg-text-project::after{
  content:', ';
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-style:normal!important;
  font-weight:620!important;
  font-size:clamp(42px,5.45vw,96px)!important;
  line-height:.98!important;
  letter-spacing:-.065em!important;
  color:var(--muted)!important;
  opacity:.5!important;
}
body.hg-view-text .hg-text-project-title{
  display:inline!important;
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-style:normal!important;
  font-weight:620!important;
  font-variation-settings:'wght' 620!important;
  font-size:clamp(42px,5.45vw,96px)!important;
  line-height:.98!important;
  letter-spacing:-.065em!important;
  color:inherit!important;
  text-transform:none!important;
}
body.hg-view-text .hg-text-project-meta{display:none!important;}
body.hg-view-text .hg-text-list:hover .hg-text-project{opacity:.22!important;color:var(--muted)!important;}
body.hg-view-text .hg-text-list:hover .hg-text-project.is-active,
body.hg-view-text .hg-text-project.is-active,
body.hg-view-text .hg-text-project.is-locked{
  opacity:1!important;
  color:var(--fg)!important;
}
body.hg-view-text .hg-text-project.is-active::after,
body.hg-view-text .hg-text-project.is-locked::after{color:var(--muted)!important;opacity:.45!important;}
body.hg-view-text .hg-text-project.is-locked .hg-text-project-title::after{display:none!important;content:none!important;}

@media(max-width:720px){
  body.home{padding-top:var(--hg-header-h)!important;}
  body.home:not(.hg-view-text) .hg-projects{padding-top:calc(var(--hg-home-hero-h,150px) + 16px)!important;}
  body.hg-view-text .hg-project-text-index{padding-top:calc(var(--hg-text-preview-h) + 18px + var(--hg-text-controls-h) + 16px)!important;}
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-size:clamp(42px,13.5vw,74px)!important;
    line-height:.96!important;
    letter-spacing:-.07em!important;
  }
  body.hg-view-text .hg-text-preview-sticky{padding-left:20px!important;padding-right:20px!important;}
}

/* =========================================================
   HG V69 — Mobile stable, texte compact, lightbox texte, curseur
   ========================================================= */
:root{
  --hg-header-h:64px!important;
  --hg-home-hero-h:174px!important;
  --hg-text-preview-h:156px!important;
  --hg-text-controls-h:42px!important;
}
html{
  overflow-x:hidden!important;
  scroll-padding-top:calc(var(--hg-header-h) + 12px)!important;
}
body.home .hg-header,
body.home:not(.hg-view-text) .hg-home-hero,
body.hg-view-text .hg-text-preview-sticky,
body.hg-view-text .hg-home-hero{
  transform:translate3d(0,0,0)!important;
  will-change:auto!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
}
body.home:not(.hg-view-text) .hg-home-hero{
  height:auto!important;
  min-height:var(--hg-home-hero-h)!important;
  max-height:none!important;
  overflow:hidden!important;
}
body.home:not(.hg-view-text) .hg-projects{
  padding-top:calc(var(--hg-home-hero-h) + 20px)!important;
}
body.home .hg-h1,
body.home .hg-project-mainline,
body.hg-view-text .hg-text-project,
body.hg-view-text .hg-text-project-title{
  overflow:visible!important;
  text-overflow:clip!important;
}
body.hg-view-text .hg-project-text-index{
  padding-top:calc(var(--hg-text-preview-h) + 18px + var(--hg-text-controls-h) + 24px)!important;
}
body.hg-view-text .hg-text-list{
  text-align:justify!important;
  text-align-last:left!important;
  hyphens:none!important;
  overflow:visible!important;
}
body.hg-view-text .hg-text-list::after{
  content:""!important;
  display:inline-block!important;
  width:100%!important;
  height:0!important;
}
body.hg-view-text .hg-text-project,
body.hg-view-text .hg-text-project-title,
body.hg-view-text .hg-text-project::after{
  line-height:1.08!important;
  letter-spacing:-.045em!important;
  vertical-align:baseline!important;
}
body.hg-view-text .hg-text-project-title{
  padding-bottom:.06em!important;
}
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb],
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb] img,
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb] video{
  -webkit-tap-highlight-color:transparent!important;
}
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb]{
  cursor:zoom-in!important;
}
body.hg-view-text .hg-text-preview-strip .hg-tile.is-media-error,
body.hg-view-text .hg-text-preview-strip .hg-text-preview-placeholder.is-media-error{
  background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--fg) 8%,var(--bg)) 0 10px,color-mix(in srgb,var(--fg) 13%,var(--bg)) 10px 20px)!important;
}
body.hg-view-text .hg-text-preview-strip img{
  color:transparent!important;
  font-size:0!important;
}

@media(max-width:720px){
  :root{
    --hg-header-h:54px!important;
    --hg-home-hero-h:172px!important;
    --hg-text-preview-h:118px!important;
    --hg-text-controls-h:56px!important;
  }
  body.home{padding-top:var(--hg-header-h)!important;overflow-x:hidden!important;}
  body.home .hg-header{
    height:var(--hg-header-h)!important;
    min-height:var(--hg-header-h)!important;
    padding:0 10px!important;
  }
  body.home .hg-header-inner{
    height:var(--hg-header-h)!important;
    min-height:var(--hg-header-h)!important;
  }
  body.home:not(.hg-view-text) .hg-home-hero{
    top:var(--hg-header-h)!important;
    padding:10px 10px 10px!important;
    min-height:var(--hg-home-hero-h)!important;
  }
  body.home .hg-h1{
    font-size:clamp(25px,8.8vw,36px)!important;
    line-height:1.02!important;
    letter-spacing:-.045em!important;
    min-height:0!important;
    white-space:normal!important;
    max-width:100%!important;
  }
  body.home .hg-h1.morphed{
    font-weight:640!important;
    font-variation-settings:'wght' 640!important;
    letter-spacing:-.045em!important;
  }
  body.home .hg-home-seo{
    display:block!important;
    max-width:none!important;
    min-height:0!important;
    max-height:3.9em!important;
    margin:6px 0 0!important;
    font-size:11px!important;
    line-height:1.28!important;
    overflow:hidden!important;
  }
  body.home .hg-home-seo p{max-width:none!important;}
  body.home .hg-filters-row--with-view{
    margin-top:7px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;
    flex-direction:row!important;
    gap:10px!important;
  }
  body.home .hg-filters{
    gap:6px 13px!important;
    margin-top:0!important;
    flex-wrap:wrap!important;
    min-width:0!important;
  }
  body.home .hg-filter,
  body.home .hg-filter sup,
  body.home .hg-view-switch-btn{
    font-size:10px!important;
    line-height:1.1!important;
  }
  body.home .hg-view-switch{
    margin-left:auto!important;
    flex:0 0 auto!important;
    gap:9px!important;
  }
  body.home:not(.hg-view-text) .hg-projects{
    padding-top:calc(var(--hg-home-hero-h) + 12px)!important;
  }
  body.home:not(.hg-view-text) .hg-project-card{
    padding-bottom:18px!important;
    margin-bottom:18px!important;
  }
  body.home:not(.hg-view-text) .hg-strip{
    height:132px!important;
    padding:0 10px!important;
    gap:5px!important;
  }
  body.home:not(.hg-view-text) .hg-strip .hg-tile,
  body.home:not(.hg-view-text) .hg-strip .hg-tile-placeholder{
    flex:0 0 calc((100vw - 25px) / 2)!important;
    width:calc((100vw - 25px) / 2)!important;
    height:132px!important;
    aspect-ratio:auto!important;
  }
  body.home:not(.hg-view-text) .hg-strip .hg-tile img,
  body.home:not(.hg-view-text) .hg-strip .hg-tile video{
    object-fit:cover!important;
  }
  body.home .hg-project-meta.hg-project-meta-final,
  body.home .hg-project-meta{
    padding:6px 10px 0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:3px 8px!important;
  }
  body.home .hg-project-mainline{
    grid-column:1/2!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:normal!important;
  }
  body.home .hg-project-client,
  body.home .hg-project-name{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.home .hg-project-sep{display:none!important;}
  body.home .hg-project-rightmeta{
    grid-column:2/3!important;
    justify-self:end!important;
    font-size:10px!important;
    gap:7px!important;
  }
  body.home .hg-acc-toggle{display:none!important;}

  body.hg-view-text .hg-text-preview-sticky{
    top:var(--hg-header-h)!important;
    height:calc(var(--hg-text-preview-h) + 14px)!important;
    min-height:calc(var(--hg-text-preview-h) + 14px)!important;
    padding:7px 10px!important;
  }
  body.hg-view-text .hg-text-preview-strip{
    height:var(--hg-text-preview-h)!important;
    min-height:var(--hg-text-preview-h)!important;
    max-height:var(--hg-text-preview-h)!important;
    gap:5px!important;
  }
  body.hg-view-text .hg-text-preview-strip .hg-tile,
  body.hg-view-text .hg-text-preview-strip .hg-tile-placeholder{
    flex:0 0 calc((100vw - 25px) / 2)!important;
    width:calc((100vw - 25px) / 2)!important;
    aspect-ratio:auto!important;
  }
  body.hg-view-text .hg-home-hero{
    top:calc(var(--hg-header-h) + var(--hg-text-preview-h) + 14px)!important;
    height:var(--hg-text-controls-h)!important;
    min-height:var(--hg-text-controls-h)!important;
    max-height:var(--hg-text-controls-h)!important;
    padding:7px 10px!important;
    align-items:center!important;
    overflow:hidden!important;
  }
  body.hg-view-text .hg-home-hero .hg-filters-row--with-view{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
  }
  body.hg-view-text .hg-home-hero .hg-filters{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    gap:12px!important;
  }
  body.hg-view-text .hg-project-text-index{
    padding:calc(var(--hg-text-preview-h) + 14px + var(--hg-text-controls-h) + 12px) 10px 54px!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-size:clamp(23px,7.2vw,34px)!important;
    line-height:1.12!important;
    letter-spacing:-.042em!important;
  }
  body.hg-view-text .hg-text-project{
    opacity:.50!important;
  }
  body.hg-view-text .hg-text-list:hover .hg-text-project{opacity:.50!important;}
  body.hg-view-text .hg-text-list:hover .hg-text-project.is-active,
  body.hg-view-text .hg-text-project.is-active,
  body.hg-view-text .hg-text-project.is-locked{
    opacity:1!important;
  }
  .hg-text-preview-tools{
    right:10px!important;
    bottom:10px!important;
  }
  .hg-text-lock-btn,
  .hg-text-view-btn{
    min-height:26px!important;
    padding:0 8px!important;
    font-size:8px!important;
  }
}



/* =========================================================
   HG V70 — mobile ratios natifs, SEO hors layout, cursor propre
   ========================================================= */
/* Le texte SEO reste dans le DOM, mais ne doit plus créer de hauteur ni gêner les filtres. */
body.home .hg-home-seo,
body.hg-view-text .hg-home-seo{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  min-height:1px!important;
  max-width:1px!important;
  max-height:1px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.home .hg-home-seo p{max-width:none!important;margin:0!important;}

/* Bouton détail : vrai rectangle, lisible, avec un petit padding sur tous les côtés. */
body .hg-acc-cta .hg-view-btn,
body .hg-view-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:max-content!important;
  min-height:22px!important;
  padding:3px 6px 4px!important;
  border:1px solid var(--fg)!important;
  border-radius:0!important;
  background:var(--fg)!important;
  color:var(--bg)!important;
  text-decoration:none!important;
  line-height:1!important;
  font-size:13px!important;
  letter-spacing:.035em!important;
  gap:5px!important;
  transform:none!important;
}
body .hg-acc-cta .hg-view-btn:hover,
body .hg-view-btn:hover{opacity:.82!important;transform:none!important;}
body .hg-view-btn .serif{line-height:1!important;font-size:15px!important;}

/* Cursor V70 : on supprime les .cur lourds/buggés et on garde un point précis, coloré par la palette active. */
@media(hover:hover) and (pointer:fine){
  html,body,
  a,button,[role="button"],summary,label,
  .hg-palette-btn,.hg-filter,.hg-view-switch-btn,.hg-acc-toggle,.hg-tile[data-lb],
  [data-strip],.hg-text-preview-strip,.hg-strip.dragging,.hg-text-preview-strip.dragging,
  .hg-lightbox,.hg-lb-stage img,.hg-lb-stage video{
    cursor:none!important;
  }
  input:not([type="button"]):not([type="submit"]):not([type="color"]),textarea,[contenteditable="true"]{cursor:text!important;}
  .hg-cursor-accent{
    position:fixed!important;
    left:var(--hg-cursor-x,-999px)!important;
    top:var(--hg-cursor-y,-999px)!important;
    width:5px!important;
    height:5px!important;
    margin:0!important;
    border:0!important;
    border-radius:999px!important;
    background:var(--fg)!important;
    z-index:999999!important;
    pointer-events:none!important;
    opacity:0!important;
    mix-blend-mode:normal!important;
    transform:translate(-50%,-50%)!important;
    transition:opacity .08s ease,width .1s ease,height .1s ease,background .12s ease!important;
    will-change:transform!important;
  }
  body.hg-cursor-active .hg-cursor-accent{opacity:1!important;}
  .hg-cursor-accent.is-link{
    width:7px!important;
    height:7px!important;
    background:var(--fg)!important;
  }
  .hg-cursor-accent.is-drag{
    width:9px!important;
    height:5px!important;
    border-radius:999px!important;
  }
  .hg-cursor-accent.is-down{
    width:4px!important;
    height:4px!important;
  }
}

@media(max-width:720px){
  /* Les hauteurs de section restent proches de la V69, mais les médias gardent leur ratio natif. */
  body.home .hg-h1{
    font-size:clamp(23px,7.5vw,31px)!important;
    line-height:1.08!important;
    letter-spacing:-.04em!important;
    overflow:visible!important;
    white-space:normal!important;
    display:block!important;
    max-height:none!important;
  }
  body.home .hg-h1.morphed{
    font-size:clamp(22px,7vw,29px)!important;
    line-height:1.08!important;
    letter-spacing:-.04em!important;
  }
  body.home .hg-h1.morphed.is-long-title{
    font-size:clamp(19px,5.8vw,25px)!important;
    line-height:1.1!important;
    letter-spacing:-.032em!important;
  }
  body.home:not(.hg-view-text) .hg-home-hero{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    gap:8px!important;
    overflow:visible!important;
  }
  body.home .hg-filters-row--with-view{
    margin-top:auto!important;
  }

  /* On remet le bouton Infos sur mobile : il ne doit plus disparaître. */
  body.home .hg-acc-toggle,
  body.home .hg-acc-toggle:hover,
  body.home .hg-acc-toggle:focus,
  body.home .hg-acc-toggle:active,
  body.home .hg-acc-toggle.open{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    font-size:9px!important;
    padding:0!important;
  }

  /* Galerie mobile : même hauteur, largeur calculée par le ratio réel du média WP. */
  body.home:not(.hg-view-text) .hg-strip{
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    align-items:stretch!important;
    padding:0 10px!important;
    gap:5px!important;
  }
  body.home:not(.hg-view-text) .hg-strip .hg-tile,
  body.home:not(.hg-view-text) .hg-strip .hg-tile-placeholder{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    aspect-ratio:var(--ratio,16/9)!important;
    overflow:hidden!important;
  }
  body.home:not(.hg-view-text) .hg-strip .hg-tile img,
  body.home:not(.hg-view-text) .hg-strip .hg-tile video{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }

  /* Preview texte : même principe, ratios natifs avec hauteur commune. */
  body.hg-view-text .hg-text-preview-sticky{
    overflow:visible!important;
  }
  body.hg-view-text .hg-text-preview-strip .hg-tile,
  body.hg-view-text .hg-text-preview-strip .hg-tile-placeholder{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:var(--hg-text-preview-h)!important;
    min-height:var(--hg-text-preview-h)!important;
    max-height:var(--hg-text-preview-h)!important;
    aspect-ratio:var(--ratio,16/9)!important;
    overflow:hidden!important;
  }
  body.hg-view-text .hg-text-preview-strip img,
  body.hg-view-text .hg-text-preview-strip video{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  body.hg-view-text .hg-text-list{
    text-align:justify!important;
    text-align-last:left!important;
    overflow:visible!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-size:clamp(20px,6.2vw,30px)!important;
    line-height:1.16!important;
    letter-spacing:-.032em!important;
  }
  body.hg-view-text .hg-text-project-title{padding-bottom:0!important;}

  /* Accordéon mobile : évite les chevauchements quand on ouvre les infos. */
  body.home .hg-accordion{
    padding:0 10px!important;
  }
  body.home .hg-accordion.open{
    max-height:1700px!important;
    opacity:1!important;
  }
  body.home .hg-accordion-inner{
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:14px 0 12px!important;
  }
  body.home .hg-acc-block,
  body.home .hg-services-wrap,
  body.home .hg-acc-cta{
    border:0!important;
    padding-left:0!important;
    min-height:0!important;
  }
  body.home .hg-acc-blurb{
    font-size:13px!important;
    line-height:1.45!important;
  }
}


/* =========================================================
   HG V71 — arrow cursor, mobile meta clean, palette text removed
   ========================================================= */
/* Palette: on garde uniquement le pictogramme + les choix. */
.hg-palette-head p,
.hg-palette-note{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.hg-palette-head{margin-bottom:10px!important;}

/* SEO: le texte reste dans le HTML mais ne doit jamais pousser les filtres ni la preview. */
body.home .hg-home-seo,
body.home.hg-view-text .hg-home-seo,
body.hg-view-text .hg-home-seo{
  position:fixed!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  min-height:1px!important;
  max-width:1px!important;
  max-height:1px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Cursor: suppression visuelle de l'ancien point + nouvelle flèche style référence. */
.hg-cursor-accent{display:none!important;visibility:hidden!important;opacity:0!important;}
@media(hover:hover) and (pointer:fine){
  html,body,
  a,button,[role="button"],summary,label,
  .hg-palette-btn,.hg-filter,.hg-view-switch-btn,.hg-acc-toggle,.hg-tile[data-lb],.hg-masonry-btn,
  [data-strip],.hg-text-preview-strip,.hg-strip.dragging,.hg-text-preview-strip.dragging,
  .hg-lightbox,.hg-lb-stage img,.hg-lb-stage video{
    cursor:none!important;
  }
  input:not([type="button"]):not([type="submit"]):not([type="color"]),
  textarea,[contenteditable="true"]{
    cursor:text!important;
  }
  .hg-cursor-arrow{
    position:fixed!important;
    left:0!important;
    top:0!important;
    width:24px!important;
    height:24px!important;
    color:var(--fg)!important;
    z-index:999999!important;
    pointer-events:none!important;
    opacity:0!important;
    transform:translate3d(-100px,-100px,0)!important;
    transform-origin:7px 7px!important;
    transition:opacity .08s ease,width .12s ease,height .12s ease,color .12s ease!important;
    will-change:transform!important;
    mix-blend-mode:normal!important;
  }
  body.hg-cursor-active .hg-cursor-arrow{opacity:1!important;}
  .hg-cursor-arrow svg{
    display:block!important;
    width:100%!important;
    height:100%!important;
    overflow:visible!important;
    filter:drop-shadow(0 0 1px var(--bg));
  }
  .hg-cursor-arrow path{
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:3.2!important;
    stroke-linecap:square!important;
    stroke-linejoin:miter!important;
    vector-effect:non-scaling-stroke!important;
  }
  .hg-cursor-arrow.is-link{
    width:26px!important;
    height:26px!important;
  }
  .hg-cursor-arrow.is-drag svg{transform:rotate(45deg)!important;}
  .hg-cursor-arrow.is-down{
    width:21px!important;
    height:21px!important;
  }
}
@media(hover:none),(pointer:coarse){.hg-cursor-arrow{display:none!important;}}

/* Footer: tous les pictos/liens utilisent la couleur de contraste de la palette active, jamais le bleu navigateur. */
.hg-footer a,
.hg-footer a:visited,
.hg-footer svg,
.hg-footer path,
.hg-footer [class*="icon"],
.hg-footer [class*="Icon"]{
  color:var(--fg)!important;
  fill:currentColor!important;
  stroke:currentColor!important;
  text-decoration:none!important;
}
.hg-footer a{opacity:.68!important;}
.hg-footer a:hover{opacity:1!important;color:var(--fg)!important;}

@media(max-width:720px){
  /* Mobile image mode: même hauteur, ratios natifs des médias WP conservés. */
  body.home:not(.hg-view-text) .hg-strip{
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    padding:0 10px!important;
    gap:5px!important;
    align-items:stretch!important;
  }
  body.home:not(.hg-view-text) .hg-strip .hg-tile,
  body.home:not(.hg-view-text) .hg-strip .hg-tile-placeholder{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    aspect-ratio:var(--ratio,16/9)!important;
    overflow:hidden!important;
  }
  body.home:not(.hg-view-text) .hg-strip .hg-tile img,
  body.home:not(.hg-view-text) .hg-strip .hg-tile video{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }

  /* Mobile: la ligne sous chaque strip devient propre, en deux niveaux, sans chevauchement. */
  body.home:not(.hg-view-text) .hg-project-meta.hg-project-meta-final,
  body.home:not(.hg-view-text) .hg-project-meta{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    align-items:start!important;
    gap:5px 10px!important;
    min-height:0!important;
    padding:8px 10px 10px!important;
    overflow:visible!important;
  }
  body.home:not(.hg-view-text) .hg-project-mainline{
    display:contents!important;
    min-width:0!important;
  }
  body.home:not(.hg-view-text) .hg-project-client{
    grid-column:1!important;
    grid-row:1!important;
    align-self:start!important;
    min-width:0!important;
    max-width:100%!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.home:not(.hg-view-text) .hg-project-sep{display:none!important;}
  body.home:not(.hg-view-text) .hg-project-name{
    grid-column:1!important;
    grid-row:2!important;
    align-self:start!important;
    min-width:0!important;
    max-width:100%!important;
    display:block!important;
    font-size:clamp(17px,5.2vw,24px)!important;
    line-height:1.03!important;
    letter-spacing:-.035em!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    padding:0!important;
    transform:none!important;
  }
  body.home:not(.hg-view-text) .hg-project-rightmeta{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:start!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    max-width:42vw!important;
    min-width:0!important;
    padding-top:1px!important;
  }
  body.home:not(.hg-view-text) .hg-project-cat,
  body.home:not(.hg-view-text) .hg-project-year{
    font-size:9px!important;
    line-height:1.08!important;
    white-space:normal!important;
    text-align:right!important;
  }
  body.home:not(.hg-view-text) .hg-acc-toggle,
  body.home:not(.hg-view-text) .hg-acc-toggle:hover,
  body.home:not(.hg-view-text) .hg-acc-toggle:focus,
  body.home:not(.hg-view-text) .hg-acc-toggle:active,
  body.home:not(.hg-view-text) .hg-acc-toggle.open{
    display:inline-flex!important;
    grid-column:2!important;
    grid-row:2!important;
    justify-self:end!important;
    align-self:start!important;
    width:auto!important;
    min-width:64px!important;
    max-width:none!important;
    height:auto!important;
    min-height:24px!important;
    max-height:none!important;
    padding:5px 7px!important;
    font-size:9px!important;
    line-height:1!important;
    white-space:nowrap!important;
    transform:none!important;
  }

  /* Accordéon mobile: chaque bloc prend sa place, aucune superposition. */
  body.home .hg-accordion{
    clear:both!important;
    display:block!important;
    padding:0 10px!important;
    overflow:hidden!important;
  }
  body.home .hg-accordion.open{
    max-height:2400px!important;
    opacity:1!important;
    overflow:visible!important;
  }
  body.home .hg-accordion-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    padding:14px 0 18px!important;
    margin:0!important;
    border:0!important;
  }
  body.home .hg-acc-block,
  body.home .hg-services-wrap,
  body.home .hg-acc-cta,
  body.home .hg-home-device-wrap{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:0!important;
    clear:both!important;
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
  }
  body.home .hg-acc-blurb{
    font-size:13px!important;
    line-height:1.45!important;
    max-width:100%!important;
    margin:0!important;
  }
  body.home .hg-services{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:3px 6px!important;
    width:100%!important;
  }
  body.home .hg-service-tag{
    font-size:12px!important;
    line-height:1.35!important;
  }

  /* Texte mode mobile: preview avec ratios natifs, sans largeur carrée forcée. */
  body.hg-view-text .hg-text-preview-strip .hg-tile,
  body.hg-view-text .hg-text-preview-strip .hg-tile-placeholder{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:var(--hg-text-preview-h)!important;
    min-height:var(--hg-text-preview-h)!important;
    max-height:var(--hg-text-preview-h)!important;
    aspect-ratio:var(--ratio,16/9)!important;
  }
  body.hg-view-text .hg-text-preview-strip img,
  body.hg-view-text .hg-text-preview-strip video{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
}

/* =========================================================
   HG V72 — curseur/flèches MDI-like, texte mode compact, mobile titles, SEO right
   ========================================================= */
:root{
  --hg-arrow-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7H17V15' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
.hg-ext-arrow{
  display:inline-block!important;
  width:.92em!important;
  height:.92em!important;
  min-width:.92em!important;
  margin-left:.28em!important;
  vertical-align:-.08em!important;
  background:currentColor!important;
  -webkit-mask:var(--hg-arrow-mask) center/contain no-repeat!important;
  mask:var(--hg-arrow-mask) center/contain no-repeat!important;
  transform:none!important;
  opacity:1!important;
}
.hg-footer a .hg-ext-arrow,
.hg-device-link .hg-ext-arrow,
.hg-view-btn .hg-ext-arrow,
.hg-text-view-btn .hg-ext-arrow{color:currentColor!important;background:currentColor!important;}

/* Cursor desktop : une vraie flèche fine/propre, pilotée par la couleur active du site. */
.hg-cursor-accent{display:none!important;visibility:hidden!important;opacity:0!important;}
@media(hover:hover) and (pointer:fine){
  html,body,
  a,button,[role="button"],summary,label,
  .hg-palette-btn,.hg-filter,.hg-view-switch-btn,.hg-acc-toggle,.hg-tile[data-lb],.hg-masonry-btn,
  [data-strip],.hg-text-preview-strip,.hg-strip.dragging,.hg-text-preview-strip.dragging,
  .hg-lightbox,.hg-lb-stage img,.hg-lb-stage video{
    cursor:none!important;
  }
  input:not([type="button"]):not([type="submit"]):not([type="color"]),textarea,[contenteditable="true"]{cursor:text!important;}
  .hg-cursor-arrow{
    display:block!important;
    position:fixed!important;
    left:0!important;
    top:0!important;
    width:22px!important;
    height:22px!important;
    color:var(--fg)!important;
    z-index:999999!important;
    pointer-events:none!important;
    opacity:0!important;
    transform:translate3d(-100px,-100px,0)!important;
    transform-origin:4px 4px!important;
    transition:opacity .08s ease,width .1s ease,height .1s ease,color .12s ease!important;
    will-change:transform!important;
    mix-blend-mode:normal!important;
  }
  body.hg-cursor-active .hg-cursor-arrow{opacity:1!important;}
  .hg-cursor-arrow svg{display:block!important;width:100%!important;height:100%!important;overflow:visible!important;filter:drop-shadow(0 0 1px var(--bg));}
  .hg-cursor-arrow path{fill:none!important;stroke:currentColor!important;stroke-width:2.8!important;stroke-linecap:square!important;stroke-linejoin:miter!important;vector-effect:non-scaling-stroke!important;}
  .hg-cursor-arrow.is-link{width:25px!important;height:25px!important;}
  .hg-cursor-arrow.is-drag svg{transform:rotate(45deg)!important;}
  .hg-cursor-arrow.is-down{width:19px!important;height:19px!important;}
}
@media(hover:none),(pointer:coarse){.hg-cursor-arrow{display:none!important;}}

/* Footer : remplace les anciennes flèches bleues/texte par la même arrow, couleur contrastée active. */
.hg-footer a,
.hg-footer a:visited{color:var(--fg)!important;text-decoration:none!important;}
.hg-footer a{opacity:.68!important;}
.hg-footer a:hover{opacity:1!important;color:var(--fg)!important;}
.hg-footer .hg-ext-arrow{color:var(--fg)!important;background:var(--fg)!important;}

/* Mode Texte desktop : plus compact, navigable, avec espace net après les virgules. */
body.hg-view-text .hg-text-list{
  text-align:justify!important;
  text-align-last:left!important;
  word-spacing:.02em!important;
  overflow:visible!important;
}
body.hg-view-text .hg-text-project-title,
body.hg-view-text .hg-text-project::after{
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-weight:620!important;
  font-variation-settings:'wght' 620!important;
  font-size:clamp(30px,4.05vw,68px)!important;
  line-height:1.04!important;
  letter-spacing:-.05em!important;
}
body.hg-view-text .hg-text-project::after{
  content:',\00a0'!important;
  opacity:.55!important;
}

/* SEO : visible uniquement quand l'accueil revient à l'état Hugo Giorgi. Aligné à droite, sans gêner les filtres. */
@media(min-width:721px){
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo{
    display:block!important;
    position:absolute!important;
    left:auto!important;
    right:28px!important;
    top:auto!important;
    bottom:15px!important;
    width:min(430px,36vw)!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:min(430px,36vw)!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:visible!important;
    clip:auto!important;
    clip-path:none!important;
    white-space:normal!important;
    opacity:.76!important;
    pointer-events:none!important;
    color:var(--muted2)!important;
    font-size:12px!important;
    line-height:1.35!important;
    text-align:right!important;
    z-index:2!important;
  }
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo p{
    margin:0!important;
    max-width:none!important;
    text-align:right!important;
    text-wrap:balance!important;
  }
  body.home.hg-home-project-hover .hg-home-seo,
  body.home.hg-view-text .hg-home-seo,
  body.hg-view-text .hg-home-seo{
    position:fixed!important;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    pointer-events:none!important;
  }
}
@media(max-width:720px){
  body.home .hg-home-seo,
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo{
    position:fixed!important;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    pointer-events:none!important;
  }
}

@media(max-width:720px){
  /* Image mode mobile : le titre projet devient réellement lisible, sur deux lignes si besoin. */
  body.home:not(.hg-view-text) .hg-project-meta.hg-project-meta-final,
  body.home:not(.hg-view-text) .hg-project-meta{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    gap:5px 9px!important;
    padding:8px 10px 11px!important;
    align-items:start!important;
    overflow:visible!important;
  }
  body.home:not(.hg-view-text) .hg-project-name{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    grid-column:1!important;
    grid-row:2!important;
    align-self:start!important;
    font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
    font-size:clamp(23px,7.4vw,35px)!important;
    line-height:.98!important;
    letter-spacing:-.055em!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    padding:0!important;
    max-width:calc(100vw - 112px)!important;
  }
  body.home:not(.hg-view-text) .hg-project-client{
    font-size:11px!important;
    line-height:1.08!important;
  }
  body.home:not(.hg-view-text) .hg-project-cat,
  body.home:not(.hg-view-text) .hg-project-year{
    font-size:9px!important;
    line-height:1.08!important;
  }
  body.home:not(.hg-view-text) .hg-acc-toggle,
  body.home:not(.hg-view-text) .hg-acc-toggle:hover,
  body.home:not(.hg-view-text) .hg-acc-toggle:focus,
  body.home:not(.hg-view-text) .hg-acc-toggle:active,
  body.home:not(.hg-view-text) .hg-acc-toggle.open{
    grid-column:2!important;
    grid-row:2!important;
    align-self:start!important;
    justify-self:end!important;
    min-width:62px!important;
    min-height:24px!important;
    padding:5px 7px!important;
    font-size:9px!important;
    line-height:1!important;
  }

  /* Mode Texte mobile : encore plus petit pour scroller/naviguer facilement. */
  body.hg-view-text .hg-text-list{
    text-align:justify!important;
    text-align-last:left!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-size:clamp(16px,4.95vw,23px)!important;
    line-height:1.16!important;
    letter-spacing:-.032em!important;
  }
  body.hg-view-text .hg-text-project::after{content:',\00a0'!important;}
}


/* =========================================================
   HG V73 — urgence curseur natif, texte compact, SEO retour Hugo Giorgi
   ========================================================= */
/* Cursor : retour complet au curseur navigateur natif. */
.hg-cursor-arrow,
.hg-cursor-accent{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(hover:hover) and (pointer:fine){
  html,body{cursor:auto!important;}
  a,button,[role="button"],summary,label,
  .hg-palette-btn,.hg-filter,.hg-view-switch-btn,.hg-acc-toggle,
  .hg-tile[data-lb],.hg-masonry-btn,.hg-text-preview-strip .hg-tile[data-lb],
  .hg-view-btn,.hg-text-view-btn,.hg-lb-close,.hg-lb-prev,.hg-lb-next{
    cursor:pointer!important;
  }
  .hg-strip,[data-strip],.hg-text-preview-strip,
  body.hg-view-text .hg-text-preview-strip,
  body.hg-view-text .hg-text-preview-strip .hg-tile{
    cursor:grab!important;
  }
  .hg-strip.dragging,.hg-text-preview-strip.dragging,
  .is-dragging-strip,.is-dragging-strip .hg-tile{
    cursor:grabbing!important;
  }
  input:not([type="button"]):not([type="submit"]):not([type="color"]),
  textarea,[contenteditable="true"]{
    cursor:text!important;
  }
}

/* Footer : arrow top-right type MDI, en remplacement des anciennes flèches bleues. */
:root{
  --hg-arrow-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3v2h3.59L7.76 14.83l1.41 1.41L19 6.41V10h2V3h-7Z' fill='black'/%3E%3C/svg%3E")!important;
}
.hg-footer .hg-ext-arrow,
.hg-ext-arrow{
  display:inline-block!important;
  width:1em!important;
  height:1em!important;
  min-width:1em!important;
  margin-left:.28em!important;
  vertical-align:-.12em!important;
  color:currentColor!important;
  background:currentColor!important;
  -webkit-mask:var(--hg-arrow-mask) center/contain no-repeat!important;
  mask:var(--hg-arrow-mask) center/contain no-repeat!important;
  opacity:1!important;
}
.hg-footer a,.hg-footer a:visited{color:var(--fg)!important;text-decoration:none!important;}
.hg-footer a:hover{color:var(--fg)!important;opacity:1!important;}

/* Mode Texte : titres projet beaucoup plus petits, moins gras, plus faciles à parcourir. */
body.hg-view-text .hg-text-project{
  padding:8px 0 9px!important;
  gap:10px!important;
  align-items:baseline!important;
}
body.hg-view-text .hg-text-project-title,
body.hg-view-text .hg-text-project::after{
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-weight:430!important;
  font-variation-settings:'wght' 430!important;
  font-size:clamp(18px,2.45vw,40px)!important;
  line-height:1.14!important;
  letter-spacing:-.026em!important;
}
body.hg-view-text .hg-text-project:hover .hg-text-project-title,
body.hg-view-text .hg-text-project.is-active .hg-text-project-title,
body.hg-view-text .hg-text-project.is-locked .hg-text-project-title{
  font-weight:470!important;
  font-variation-settings:'wght' 470!important;
  letter-spacing:-.028em!important;
}
body.hg-view-text .hg-text-project::after{
  content:',\00a0'!important;
  font-weight:430!important;
  opacity:.46!important;
}
body.hg-view-text .hg-text-project-meta{
  font-size:9px!important;
  line-height:1.2!important;
}
@media(max-width:720px){
  body.hg-view-text .hg-text-project{
    padding:6px 0 7px!important;
    gap:5px!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-size:clamp(13px,3.65vw,18px)!important;
    line-height:1.2!important;
    letter-spacing:-.018em!important;
    font-weight:420!important;
    font-variation-settings:'wght' 420!important;
  }
  body.hg-view-text .hg-text-project:hover .hg-text-project-title,
  body.hg-view-text .hg-text-project.is-active .hg-text-project-title,
  body.hg-view-text .hg-text-project.is-locked .hg-text-project-title{
    font-weight:460!important;
    font-variation-settings:'wght' 460!important;
  }
}

/* SEO : quand le hero revient à l'état Hugo Giorgi en mode Image, le texte directeur artistique revient à droite. */
@media(min-width:721px){
  body.home.hg-home-default-state:not(.hg-view-text) .hg-home-seo,
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo{
    display:block!important;
    position:absolute!important;
    left:auto!important;
    right:28px!important;
    top:auto!important;
    bottom:15px!important;
    width:min(430px,36vw)!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:min(430px,36vw)!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:visible!important;
    clip:auto!important;
    clip-path:none!important;
    white-space:normal!important;
    opacity:.76!important;
    pointer-events:none!important;
    color:var(--muted2)!important;
    font-size:12px!important;
    line-height:1.35!important;
    text-align:right!important;
    z-index:3!important;
  }
  body.home.hg-home-default-state:not(.hg-view-text) .hg-home-seo p,
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo p{
    margin:0!important;
    max-width:none!important;
    text-align:right!important;
    text-wrap:balance!important;
  }
  body.home.hg-home-project-hover:not(.hg-home-default-state) .hg-home-seo,
  body.home.hg-view-text .hg-home-seo,
  body.hg-view-text .hg-home-seo{
    position:fixed!important;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    pointer-events:none!important;
  }
}
@media(max-width:720px){
  body.home .hg-home-seo{display:none!important;}
}

/* =========================================================
   HG V74 — SEO home mieux placé + texte projets grand format
   ========================================================= */
/* Desktop / mode Image : le texte de présentation revient au niveau du titre,
   plus lisible, sans toucher aux filtres Image / Texte. */
@media(min-width:721px){
  body.home:not(.hg-view-text) .hg-home-hero{
    position:fixed!important;
    min-height:var(--hg-home-hero-h,168px)!important;
    overflow:visible!important;
  }
  body.home.hg-home-default-state:not(.hg-view-text) .hg-home-seo,
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo{
    display:block!important;
    position:absolute!important;
    left:auto!important;
    right:28px!important;
    top:50%!important;
    bottom:auto!important;
    transform:translateY(-50%)!important;
    width:min(520px,38vw)!important;
    max-width:min(520px,38vw)!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:visible!important;
    clip:auto!important;
    clip-path:none!important;
    white-space:normal!important;
    opacity:.84!important;
    pointer-events:none!important;
    color:var(--muted2)!important;
    font-size:14px!important;
    line-height:1.34!important;
    letter-spacing:-.012em!important;
    text-align:right!important;
    z-index:4!important;
  }
  body.home.hg-home-default-state:not(.hg-view-text) .hg-home-seo p,
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo p{
    margin:0!important;
    max-width:none!important;
    text-align:right!important;
    text-wrap:balance!important;
  }
  body.home.hg-home-project-hover:not(.hg-home-default-state) .hg-home-seo,
  body.home.hg-view-text .hg-home-seo,
  body.hg-view-text .hg-home-seo{
    position:fixed!important;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    pointer-events:none!important;
    transform:none!important;
  }
}

/* Mode Texte desktop : retour à une grosse typo façon design de base,
   mais avec un poids propre et une meilleure respiration. */
@media(min-width:721px){
  body.hg-view-text .hg-text-list{
    text-align:left!important;
    text-align-last:left!important;
    line-height:0!important;
  }
  body.hg-view-text .hg-text-project{
    display:inline!important;
    padding:0!important;
    margin:0!important;
    min-height:0!important;
    opacity:.42!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
    font-size:clamp(42px,5.55vw,104px)!important;
    line-height:1.03!important;
    letter-spacing:-.062em!important;
    font-weight:520!important;
    font-variation-settings:'wght' 520!important;
  }
  body.hg-view-text .hg-text-project::after{
    content:',\00a0'!important;
    opacity:.46!important;
  }
  body.hg-view-text .hg-text-project:hover .hg-text-project-title,
  body.hg-view-text .hg-text-project.is-active .hg-text-project-title,
  body.hg-view-text .hg-text-project.is-locked .hg-text-project-title{
    font-weight:620!important;
    font-variation-settings:'wght' 620!important;
    letter-spacing:-.064em!important;
  }
}

/* Mobile : on garde le SEO hors layout pour ne pas gêner la zone de filtres. */
@media(max-width:720px){
  body.home .hg-home-seo,
  body.home:not(.hg-view-text):not(.hg-home-project-hover) .hg-home-seo{
    display:none!important;
    position:fixed!important;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }
}


/* =========================================================
   HG V75 — mobile titles, text index compact block, text preview lightbox
   ========================================================= */
/* Mobile / mode Image : le titre sticky qui change au scroll doit être plus visible,
   sur deux lignes maximum, sans casser la hauteur de la barre. */
@media(max-width:720px){
  body.home:not(.hg-view-text) .hg-home-hero{
    overflow:visible!important;
  }
  body.home:not(.hg-view-text) .hg-h1.morphed{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    max-width:calc(100vw - 20px)!important;
    max-height:2.02em!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    white-space:normal!important;
    font-size:clamp(28px,9vw,40px)!important;
    line-height:1.01!important;
    letter-spacing:-.055em!important;
    font-weight:620!important;
    font-variation-settings:'wght' 620!important;
    text-wrap:balance!important;
  }
  body.home:not(.hg-view-text) .hg-h1.morphed.is-long-title{
    font-size:clamp(25px,7.9vw,34px)!important;
    line-height:1.02!important;
    letter-spacing:-.048em!important;
    font-weight:600!important;
    font-variation-settings:'wght' 600!important;
  }
}

/* Desktop / filtre Texte : bloc plus compact, légèrement plus petit, et justifié.
   Le hover/actif conserve le changement de graisse. */
@media(min-width:721px){
  body.hg-view-text .hg-text-list{
    text-align:justify!important;
    text-align-last:left!important;
    line-height:0!important;
    word-spacing:-.035em!important;
    max-width:100%!important;
  }
  body.hg-view-text .hg-text-list::after{
    content:''!important;
    display:inline-block!important;
    width:100%!important;
    height:0!important;
    line-height:0!important;
  }
  body.hg-view-text .hg-text-project{
    display:inline!important;
    padding:0!important;
    margin:0!important;
    min-height:0!important;
    opacity:.42!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
    font-size:clamp(39px,5.18vw,100px)!important;
    line-height:1.0!important;
    letter-spacing:-.06em!important;
    font-weight:500!important;
    font-variation-settings:'wght' 500!important;
  }
  body.hg-view-text .hg-text-project::after{
    content:',\00a0'!important;
    opacity:.46!important;
    word-spacing:normal!important;
  }
  body.hg-view-text .hg-text-project:hover .hg-text-project-title,
  body.hg-view-text .hg-text-project.is-active .hg-text-project-title,
  body.hg-view-text .hg-text-project.is-locked .hg-text-project-title{
    font-weight:620!important;
    font-variation-settings:'wght' 620!important;
    letter-spacing:-.063em!important;
  }
}

/* Preview du filtre Texte : la zone reste draggable, mais les médias doivent être clairement zoomables/ouvrables. */
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb]{
  cursor:zoom-in!important;
  pointer-events:auto!important;
}
body.hg-view-text .hg-text-preview-strip.dragging .hg-tile[data-lb]{cursor:grabbing!important;}
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb]::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb] img,
body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb] video{pointer-events:none!important;}


/* =========================================================
   HG V76 — typographies texte de page réduites + curseur lightbox restauré
   ========================================================= */
/* Contact : revenir à une taille plus propre, large, maximum 3 lignes visuelles. */
.hg-contact-page .hg-about-h1,
body.page-template-page-contact .hg-about-h1,
body.page-template-page-contact-php .hg-about-h1{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  font-size:clamp(30px,3.65vw,58px)!important;
  line-height:1.04!important;
  letter-spacing:-.032em!important;
  max-width:min(960px,100%)!important;
  width:100%!important;
  text-wrap:balance!important;
  margin-bottom:34px!important;
}
.hg-contact-grid{gap:clamp(30px,4vw,56px)!important;}
.hg-contact-info a,.hg-contact-info span{font-size:14px!important;line-height:1.55!important;}

/* À propos : retirer l'effet trop massif, garder l'interlignage respirant. */
.hg-about-page .hg-about-kicker{display:none!important;}
.hg-about-page .hg-about-h1{
  font-size:clamp(32px,3.45vw,58px)!important;
  line-height:1.04!important;
  letter-spacing:-.034em!important;
  max-width:min(920px,100%)!important;
  width:100%!important;
  text-wrap:balance!important;
}
.hg-about-page .hg-about-hero2{padding-bottom:42px!important;}
.hg-about-page .hg-about-section{gap:clamp(22px,3vw,40px)!important;padding:24px 0!important;}
.hg-about-page .hg-acc-btn,
.hg-about-page .hg-acc-btn-graphic{
  font-size:clamp(20px,1.85vw,30px)!important;
  line-height:1.08!important;
  padding:15px 0!important;
}
.hg-about-page .hg-acc-body p,
.hg-about-page .hg-acc-body-graphic p{
  font-size:14.5px!important;
  line-height:1.66!important;
  max-width:76ch!important;
}
.hg-about-page .hg-parcours-role,
.hg-about-page .hg-parcours-line-graphic .hg-parcours-role{
  font-size:clamp(18px,1.55vw,25px)!important;
  line-height:1.18!important;
  letter-spacing:-.018em!important;
}
.hg-about-page .hg-about-approche{
  font-size:clamp(18px,1.7vw,26px)!important;
  line-height:1.42!important;
  letter-spacing:-.012em!important;
  max-width:58ch!important;
}

/* Single projet : présentation moins énorme, avec le même esprit d'interlignage. */
.hg-single-blurb{
  font-size:clamp(17px,1.45vw,23px)!important;
  line-height:1.48!important;
  letter-spacing:-.01em!important;
  max-width:66ch!important;
  margin-bottom:20px!important;
}
.hg-single-content{
  font-size:14.5px!important;
  line-height:1.72!important;
  max-width:68ch!important;
}
.hg-single-content p{margin-bottom:1.05em!important;}
.hg-acc-blurb{
  font-size:14px!important;
  line-height:1.72!important;
  max-width:74ch!important;
}

@media(max-width:720px){
  .hg-contact-page .hg-about-h1,
  body.page-template-page-contact .hg-about-h1,
  body.page-template-page-contact-php .hg-about-h1{
    font-size:clamp(28px,8.6vw,42px)!important;
    line-height:1.06!important;
    max-width:100%!important;
    margin-bottom:28px!important;
  }
  .hg-about-page .hg-about-h1{
    font-size:clamp(30px,9vw,44px)!important;
    line-height:1.05!important;
    max-width:100%!important;
  }
  .hg-about-page .hg-acc-btn,
  .hg-about-page .hg-acc-btn-graphic{
    font-size:clamp(19px,6vw,26px)!important;
    line-height:1.12!important;
  }
  .hg-about-page .hg-about-approche{
    font-size:18px!important;
    line-height:1.48!important;
    max-width:100%!important;
  }
  .hg-single-blurb{
    font-size:17px!important;
    line-height:1.52!important;
    max-width:100%!important;
  }
  .hg-single-content{font-size:14px!important;line-height:1.74!important;}
}

/* Lightbox : les anciennes tentatives de custom cursor forçaient cursor:none.
   On restaure le curseur natif navigateur sur desktop, y compris dans la lightbox. */
@media(hover:hover) and (pointer:fine){
  html,body,
  .hg-lightbox,
  .hg-lightbox *,
  .hg-lb-stage,
  .hg-lb-stage img,
  .hg-lb-stage video{
    cursor:auto!important;
  }
  a,button,
  .hg-lb-close,.hg-lb-prev,.hg-lb-next,
  .hg-hero-btn,.hg-masonry-btn,
  .hg-tile[data-lb],
  body.hg-view-text .hg-text-preview-strip .hg-tile[data-lb]{
    cursor:pointer!important;
  }
  .hg-strip,
  .hg-strip .hg-tile,
  .hg-text-preview-strip,
  body.hg-view-text .hg-text-preview-strip .hg-tile{cursor:grab!important;}
  .hg-strip.dragging,
  .hg-strip.dragging .hg-tile,
  body.hg-view-text .hg-text-preview-strip.dragging,
  body.hg-view-text .hg-text-preview-strip.dragging .hg-tile{cursor:grabbing!important;}
  input:not([type="button"]):not([type="submit"]):not([type="color"]),
  textarea,[contenteditable="true"]{cursor:text!important;}
}


/* =========================================================
   HG V77 — single projets : galerie centrée + textes éditables
   ========================================================= */
.hg-single-editorial{
  display:grid!important;
  gap:18px!important;
  margin:22px 0 24px!important;
  max-width:68ch!important;
}
.hg-single-editorial-block{
  padding-top:14px!important;
  border-top:1px solid var(--rule)!important;
}
.hg-single-editorial-block .mono{
  margin-bottom:8px!important;
}
.hg-single-editorial-block p:not(.mono){
  font-size:14.5px!important;
  line-height:1.72!important;
  color:var(--muted2)!important;
  margin:0!important;
}
.hg-masonry{
  width:100%!important;
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  padding-left:clamp(20px,4vw,56px)!important;
  padding-right:clamp(20px,4vw,56px)!important;
  column-gap:10px!important;
}
.hg-masonry>div{
  width:100%!important;
  text-align:left!important;
}
.hg-masonry-count-1{column-count:1!important;max-width:760px!important;}
.hg-masonry-count-2{column-count:2!important;max-width:980px!important;}
.hg-masonry-count-3{column-count:3!important;max-width:1160px!important;}
@media(min-width:1201px){
  .hg-masonry:not(.hg-masonry-count-1):not(.hg-masonry-count-2):not(.hg-masonry-count-3){column-count:4!important;}
}
@media(max-width:1200px){
  .hg-masonry{max-width:1080px!important;}
  .hg-masonry-count-3,
  .hg-masonry:not(.hg-masonry-count-1):not(.hg-masonry-count-2){column-count:3!important;}
}
@media(max-width:720px){
  .hg-masonry,
  .hg-masonry-count-1,
  .hg-masonry-count-2,
  .hg-masonry-count-3{
    column-count:2!important;
    max-width:100%!important;
    padding-left:20px!important;
    padding-right:20px!important;
    column-gap:8px!important;
  }
  .hg-single-editorial{gap:14px!important;margin:18px 0 22px!important;max-width:100%!important;}
  .hg-single-editorial-block p:not(.mono){font-size:14px!important;line-height:1.72!important;}
}


/* =========================================================
   HG V81 — single projet : alignement hero / masonry / device
   ========================================================= */
.hg-single{
  --hg-single-max:1280px;
  --hg-single-gutter:clamp(20px,4vw,56px);
}
.hg-single-head,
.hg-device-section:not(.hg-device-section--home),
.hg-single-body,
.hg-masonry,
.hg-single-foot{
  width:100%!important;
  max-width:var(--hg-single-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  padding-left:var(--hg-single-gutter)!important;
  padding-right:var(--hg-single-gutter)!important;
}
.hg-single-head{
  padding-top:52px!important;
  padding-bottom:44px!important;
}
.hg-device-section:not(.hg-device-section--home){
  padding-top:0!important;
  padding-bottom:54px!important;
}
.hg-single-body{
  padding-top:8px!important;
  padding-bottom:50px!important;
}
.hg-single-foot{
  padding-top:20px!important;
  padding-bottom:74px!important;
}
.hg-masonry{
  padding-top:16px!important;
  padding-bottom:72px!important;
  column-gap:10px!important;
}
.hg-masonry-count-1,
.hg-masonry-count-2,
.hg-masonry-count-3{
  max-width:var(--hg-single-max)!important;
}
.hg-masonry-count-1{column-count:1!important;}
.hg-masonry-count-2{column-count:2!important;}
.hg-masonry-count-3{column-count:3!important;}
@media(min-width:1201px){
  .hg-masonry:not(.hg-masonry-count-1):not(.hg-masonry-count-2):not(.hg-masonry-count-3){column-count:4!important;}
}
@media(max-width:1200px){
  .hg-masonry,
  .hg-masonry-count-1,
  .hg-masonry-count-2,
  .hg-masonry-count-3{
    max-width:var(--hg-single-max)!important;
  }
  .hg-masonry-count-3,
  .hg-masonry:not(.hg-masonry-count-1):not(.hg-masonry-count-2){column-count:3!important;}
}
@media(max-width:900px){
  .hg-single-body{gap:30px!important;}
}
@media(max-width:720px){
  .hg-single{--hg-single-gutter:20px;}
  .hg-single-head{padding-top:34px!important;padding-bottom:34px!important;}
  .hg-device-section:not(.hg-device-section--home){padding-bottom:42px!important;}
  .hg-single-body{padding-bottom:38px!important;}
  .hg-masonry,
  .hg-masonry-count-1,
  .hg-masonry-count-2,
  .hg-masonry-count-3{
    column-count:2!important;
    column-gap:8px!important;
  }
}


/* =========================================================
   HG V82 — home : strips homogènes + ratios natifs + espaces resserrés
   ========================================================= */
:root{
  --hg-image-strip-h:260px;
  --hg-image-strip-gap:7px;
  --hg-project-stack-gap:24px;
  --hg-text-preview-gap:5px;
}

/* Mode Image : chaque projet utilise exactement la même hauteur de strip.
   La largeur des médias vient de leur ratio WordPress, pour garder carré, vertical ou paysage sans déformer. */
body.home:not(.hg-view-text) .hg-strip{
  height:var(--hg-image-strip-h)!important;
  min-height:var(--hg-image-strip-h)!important;
  max-height:var(--hg-image-strip-h)!important;
  gap:var(--hg-image-strip-gap)!important;
  align-items:stretch!important;
}
body.home:not(.hg-view-text) .hg-strip .hg-tile,
body.home:not(.hg-view-text) .hg-strip .hg-tile-placeholder{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
  aspect-ratio:var(--ratio,16/9)!important;
  overflow:hidden!important;
}
body.home:not(.hg-view-text) .hg-strip .hg-tile img,
body.home:not(.hg-view-text) .hg-strip .hg-tile video{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:var(--bg2)!important;
}
body.home:not(.hg-view-text) .hg-project-card{
  margin-bottom:var(--hg-project-stack-gap)!important;
  padding-bottom:0!important;
}
body.home:not(.hg-view-text) .hg-strip-progress{
  margin-top:5px!important;
}

/* Mode Texte : le drag horizontal du haut garde une hauteur stable, mais avec moins d'espace entre les médias. */
body.hg-view-text .hg-text-preview-strip{
  gap:var(--hg-text-preview-gap)!important;
}
body.hg-view-text .hg-text-preview-strip .hg-tile,
body.hg-view-text .hg-text-preview-strip .hg-tile-placeholder{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  aspect-ratio:var(--ratio,16/9)!important;
}
body.hg-view-text .hg-text-preview-strip img,
body.hg-view-text .hg-text-preview-strip video{
  object-fit:contain!important;
  object-position:center!important;
  background:var(--bg2)!important;
}

/* Liste du filtre Texte : typo conservée, mais bloc plus serré comme les références. */
@media(min-width:721px){
  body.hg-view-text .hg-text-list{
    word-spacing:-.065em!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    line-height:.94!important;
  }
  body.hg-view-text .hg-text-project::after{
    content:', '!important;
  }
}

@media(max-width:720px){
  :root{
    --hg-image-strip-h:132px;
    --hg-image-strip-gap:4px;
    --hg-project-stack-gap:18px;
    --hg-text-preview-gap:4px;
  }
  body.home:not(.hg-view-text) .hg-strip{
    padding-left:10px!important;
    padding-right:10px!important;
  }
}

/* =========================================================
   HG V83 — playlists YouTube légères + navigation single
   ========================================================= */
.hg-youtube-section,
.hg-project-nav{
  width:100%!important;
  max-width:var(--hg-single-max,1280px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  padding-left:var(--hg-single-gutter,clamp(20px,4vw,56px))!important;
  padding-right:var(--hg-single-gutter,clamp(20px,4vw,56px))!important;
}
.hg-youtube-section{
  padding-top:8px!important;
  padding-bottom:72px!important;
}
.hg-youtube-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(220px,36ch)!important;
  gap:24px!important;
  align-items:end!important;
  border-top:1px solid var(--rule)!important;
  padding-top:18px!important;
  margin-bottom:18px!important;
}
.hg-youtube-head .mono{
  grid-column:1/-1!important;
  margin:0!important;
}
.hg-youtube-title{
  font-size:clamp(34px,5vw,72px)!important;
  line-height:.94!important;
  letter-spacing:-.04em!important;
  font-weight:520!important;
  margin:0!important;
}
.hg-youtube-head p:not(.mono){
  font-size:14px!important;
  line-height:1.55!important;
  color:var(--muted2)!important;
  margin:0!important;
}
.hg-youtube-grid{
  column-count:4!important;
  column-gap:10px!important;
}
.hg-youtube-card{
  display:block!important;
  width:100%!important;
  break-inside:avoid!important;
  margin:0 0 10px!important;
  text-align:left!important;
  cursor:pointer!important;
  background:transparent!important;
  color:var(--fg)!important;
}
.hg-youtube-thumb{
  display:block!important;
  position:relative!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  background:var(--bg2)!important;
}
.hg-youtube-thumb img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  transform:scale(1.001)!important;
  transition:transform .52s var(--ease)!important;
}
.hg-youtube-card:hover .hg-youtube-thumb img{transform:scale(1.035)!important;}
.hg-youtube-play{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:42px!important;
  height:42px!important;
  border:1px solid rgba(240,235,227,.55)!important;
  background:rgba(17,17,17,.42)!important;
  color:#F0EBE3!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:13px!important;
  line-height:1!important;
  backdrop-filter:blur(6px)!important;
}
.hg-youtube-label{
  display:block!important;
  font-size:12px!important;
  line-height:1.35!important;
  margin-top:7px!important;
  color:var(--muted2)!important;
  max-width:100%!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
.hg-lb-stage iframe{
  width:min(1180px,88vw)!important;
  aspect-ratio:16/9!important;
  max-height:78vh!important;
  border:0!important;
  background:#000!important;
}
.hg-project-nav{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  padding-top:0!important;
  padding-bottom:34px!important;
}
.hg-project-nav-card{
  border-top:1px solid var(--rule)!important;
  border-bottom:1px solid var(--rule)!important;
  padding:16px 0 18px!important;
  color:var(--fg)!important;
  display:grid!important;
  gap:8px!important;
  min-height:84px!important;
  transition:opacity var(--fast),padding var(--fast)!important;
}
.hg-project-nav-card:hover{opacity:.72!important;}
.hg-project-nav-card--next{text-align:right!important;}
.hg-project-nav-card strong{
  display:block!important;
  font-size:clamp(20px,2.6vw,38px)!important;
  line-height:.98!important;
  letter-spacing:-.035em!important;
  font-weight:520!important;
}
@media(max-width:1200px){
  .hg-youtube-grid{column-count:3!important;}
}
@media(max-width:720px){
  .hg-youtube-section,
  .hg-project-nav{padding-left:20px!important;padding-right:20px!important;}
  .hg-youtube-section{padding-bottom:52px!important;}
  .hg-youtube-head{display:block!important;margin-bottom:14px!important;}
  .hg-youtube-title{margin:8px 0 10px!important;}
  .hg-youtube-grid{column-count:2!important;column-gap:8px!important;}
  .hg-youtube-card{margin-bottom:8px!important;}
  .hg-youtube-label{font-size:11px!important;line-height:1.35!important;}
  .hg-project-nav{grid-template-columns:1fr!important;gap:0!important;padding-bottom:24px!important;}
  .hg-project-nav-card--next{text-align:left!important;}
  .hg-project-nav-card strong{font-size:clamp(24px,9vw,38px)!important;}
  .hg-lb-stage iframe{width:92vw!important;}
}

/* =========================================================
   HG V84 — playlist robuste, previews web 16:9 / 9:16, bouton plus aéré
   ========================================================= */
:root{--hg-device-desktop-max:1120px;--hg-device-mobile-max:380px;}

/* Retour curseur navigateur natif : aucune disparition possible. */
@media(hover:hover) and (pointer:fine){
  html,body,
  a,button,[role="button"],summary,label,
  .hg-palette-btn,.hg-filter,.hg-view-switch-btn,.hg-acc-toggle,.hg-tile[data-lb],.hg-masonry-btn,
  [data-strip],.hg-text-preview-strip,.hg-strip.dragging,.hg-text-preview-strip.dragging,
  .hg-lightbox,.hg-lb-stage img,.hg-lb-stage video,.hg-lb-stage iframe{
    cursor:auto!important;
  }
  a,button,[role="button"],summary,label,
  .hg-palette-btn,.hg-filter,.hg-view-switch-btn,.hg-acc-toggle,.hg-tile[data-lb],.hg-masonry-btn,
  .hg-youtube-card,.hg-lb-close,.hg-lb-prev,.hg-lb-next{
    cursor:pointer!important;
  }
  [data-strip],.hg-text-preview-strip{cursor:grab!important;}
  .hg-strip.dragging,.hg-text-preview-strip.dragging{cursor:grabbing!important;}
  input:not([type="button"]):not([type="submit"]):not([type="color"]),textarea,[contenteditable="true"]{cursor:text!important;}
}
.hg-cursor-arrow,.hg-cursor-accent{display:none!important;visibility:hidden!important;opacity:0!important;}

/* Bouton “Voir le projet” : rectangle plus confortable. */
body .hg-acc-cta .hg-view-btn,
body .hg-view-btn,
body .hg-text-view-btn{
  min-height:28px!important;
  padding:6px 9px 7px!important;
  gap:6px!important;
}

/* Preview web : desktop = 16/9, mobile = 9/16, sans couper artificiellement la hauteur. */
.hg-device-frame{
  width:min(100%,var(--hg-device-mobile-max))!important;
}
.hg-device-screen{
  height:auto!important;
  aspect-ratio:9/16!important;
}
.hg-device-section[data-device-mode="desktop"] .hg-device-frame,
.hg-device-desktop{
  width:min(100%,var(--hg-device-desktop-max))!important;
}
.hg-device-section[data-device-mode="desktop"] .hg-device-screen,
.hg-device-desktop .hg-device-screen{
  height:auto!important;
  aspect-ratio:16/9!important;
}
.hg-device-section[data-device-mode="mobile"] .hg-device-screen,
.hg-device-mobile .hg-device-screen{
  height:auto!important;
  aspect-ratio:9/16!important;
}
.hg-device-section--home .hg-device-frame{
  width:min(100%,920px)!important;
}
.hg-device-section--home[data-device-mode="desktop"] .hg-device-frame{
  width:min(100%,980px)!important;
}
.hg-device-section--home[data-device-mode="desktop"] .hg-device-screen{
  height:auto!important;
  aspect-ratio:16/9!important;
}
.hg-device-section--home[data-device-mode="mobile"] .hg-device-frame{
  width:min(100%,340px)!important;
  min-width:0!important;
}
.hg-device-section--home[data-device-mode="mobile"] .hg-device-screen{
  height:auto!important;
  aspect-ratio:9/16!important;
}

/* Texte YouTube plus direct, grille stable même avec beaucoup de vidéos. */
.hg-youtube-title{font-size:clamp(34px,4.6vw,66px)!important;}
.hg-youtube-head p:not(.mono){max-width:34ch!important;}
.hg-youtube-grid{column-gap:12px!important;}
.hg-youtube-card{margin-bottom:12px!important;}

@media(max-width:720px){
  .hg-device-section[data-device-mode="desktop"] .hg-device-stage,
  .hg-device-section--home[data-device-mode="desktop"] .hg-device-stage{
    overflow-x:auto!important;
    justify-content:flex-start!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .hg-device-section[data-device-mode="desktop"] .hg-device-frame{
    width:860px!important;
    min-width:860px!important;
  }
  .hg-device-section--home[data-device-mode="desktop"] .hg-device-frame{
    width:760px!important;
    min-width:760px!important;
  }
  .hg-device-section[data-device-mode="mobile"] .hg-device-stage{
    justify-content:center!important;
    overflow:hidden!important;
  }
  .hg-device-section[data-device-mode="mobile"] .hg-device-frame{
    width:min(100%,340px)!important;
    min-width:0!important;
  }
  body .hg-acc-cta .hg-view-btn,
  body .hg-view-btn,
  body .hg-text-view-btn{
    min-height:30px!important;
    padding:7px 10px 8px!important;
  }
}

/* =========================================================
   THEME V92 — final text mode stable, no duplicate media
   ========================================================= */
body.hg-view-text .hg-text-lock-btn,
body.hg-view-text .hg-text-view-btn,
html[data-palette] body.hg-view-text .hg-text-lock-btn,
html[data-palette] body.hg-view-text .hg-text-view-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:7px 13px 8px!important;
  border:1px solid var(--fg)!important;
  background:var(--bg)!important;
  color:var(--fg)!important;
  opacity:1!important;
  visibility:visible!important;
  font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:650!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  transform:none!important;
  white-space:nowrap!important;
}
body.hg-view-text .hg-text-lock-btn[hidden],
body.hg-view-text .hg-text-view-btn[hidden]{
  display:none!important;
  visibility:hidden!important;
}
body.hg-view-text .hg-text-lock-btn:hover,
body.hg-view-text .hg-text-view-btn:hover,
body.hg-view-text .hg-text-lock-btn[aria-pressed="true"],
html[data-palette] body.hg-view-text .hg-text-lock-btn:hover,
html[data-palette] body.hg-view-text .hg-text-view-btn:hover,
html[data-palette] body.hg-view-text .hg-text-lock-btn[aria-pressed="true"]{
  background:var(--fg)!important;
  color:var(--bg)!important;
  border-color:var(--fg)!important;
}
body.hg-view-text .hg-text-view-btn .hg-ext-arrow{background:currentColor!important;}
body.hg-view-text .hg-text-preview-tools{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  z-index:20!important;
  pointer-events:auto!important;
}
body.hg-view-text .hg-text-project{
  transform:none!important;
  will-change:auto!important;
  transition:opacity .16s ease,color .16s ease!important;
}
body.hg-view-text .hg-text-project-title{
  will-change:auto!important;
  transition:letter-spacing .16s ease,color .16s ease,font-weight .16s ease!important;
}
body.hg-view-text .hg-text-preview-sticky,
body.hg-view-text .hg-text-preview-strip,
body.hg-view-text .hg-text-preview-strip .hg-tile,
body.hg-view-text .hg-text-preview-strip img,
body.hg-view-text .hg-text-preview-strip video{
  will-change:auto!important;
  -webkit-backface-visibility:visible!important;
  backface-visibility:visible!important;
}
@media(max-width:720px){
  body.hg-view-text .hg-text-preview-tools{right:18px!important;bottom:12px!important;gap:6px!important;}
  body.hg-view-text .hg-text-lock-btn,
  body.hg-view-text .hg-text-view-btn,
  html[data-palette] body.hg-view-text .hg-text-lock-btn,
  html[data-palette] body.hg-view-text .hg-text-view-btn{
    min-height:30px!important;
    padding:7px 10px 8px!important;
    font-size:9px!important;
  }
}

/* =========================================================
   THEME V97 — mobile stable patch from V92 base
   - Header mobile identique accueil / single / pages
   - Typo projet mobile en mode Image = serif italique comme desktop
   - Mode Texte mobile plus lisible
   ========================================================= */
@media(max-width:720px){
  :root{
    --hg-header-h:54px!important;
  }

  /* Header mobile : même position et même hauteur sur toutes les pages. */
  body .hg-header,
  body.home .hg-header,
  body.single .hg-header,
  body.page .hg-header,
  body.single-projets .hg-header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:var(--hg-header-h)!important;
    min-height:var(--hg-header-h)!important;
    padding:0 10px!important;
    z-index:340!important;
    background:var(--bg)!important;
    color:var(--fg)!important;
    border:0!important;
    border-bottom:1px solid var(--rule)!important;
    box-shadow:none!important;
    transform:none!important;
    will-change:auto!important;
  }
  body.admin-bar .hg-header{
    top:46px!important;
  }
  body:not(.home){
    padding-top:var(--hg-header-h)!important;
  }
  body.admin-bar:not(.home){
    padding-top:calc(var(--hg-header-h) + 46px)!important;
  }
  body .hg-header-inner,
  body.home .hg-header-inner,
  body.single .hg-header-inner,
  body.page .hg-header-inner,
  body.single-projets .hg-header-inner{
    height:var(--hg-header-h)!important;
    min-height:var(--hg-header-h)!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    position:relative!important;
  }
  body .hg-brand-sep,
  body .hg-brand-sub,
  body .center-nav,
  body .hg-nav.center-nav{
    display:none!important;
  }
  body .hg-logo,
  body .hg-brand{
    display:inline-flex!important;
    align-items:center!important;
    min-width:42px!important;
    height:var(--hg-header-h)!important;
    padding:0!important;
    margin:0!important;
    line-height:1!important;
  }
  body .hg-brand-mark{
    font-family:'Instrument Serif',Georgia,serif!important;
    font-style:italic!important;
    font-size:16px!important;
    font-weight:400!important;
    line-height:1!important;
    color:var(--fg)!important;
  }
  body .hg-logo-star{
    font-size:17px!important;
    color:var(--fg)!important;
  }
  body .hg-header-right{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:14px!important;
    height:var(--hg-header-h)!important;
    margin:0!important;
    padding:0!important;
  }
  body .hg-header .hg-palette-control{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:26px!important;
    height:26px!important;
    margin:0!important;
    padding:0!important;
  }
  body .hg-header .hg-palette-btn,
  body #hg-palette-btn{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    min-height:26px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
  }
  body .hg-burger{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:5px!important;
    width:22px!important;
    height:26px!important;
    min-width:22px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    transform:none!important;
  }
  body .hg-burger span{
    display:block!important;
    width:18px!important;
    height:1.5px!important;
    background:var(--fg)!important;
    margin:0!important;
  }

  /* Les zones fixes de la home restent calées sous le header mobile unique. */
  body.home{padding-top:var(--hg-header-h)!important;}
  body.home:not(.hg-view-text) .hg-home-hero{
    top:var(--hg-header-h)!important;
  }
  body.hg-view-text .hg-text-preview-sticky{
    top:var(--hg-header-h)!important;
  }
  body.hg-view-text .hg-home-hero{
    top:calc(var(--hg-header-h) + var(--hg-text-preview-h) + 14px)!important;
  }

  /* Mode Image mobile : nom de projet sous les visuels = même esprit typographique que desktop. */
  body.home:not(.hg-view-text) .hg-project-name,
  body.home:not(.hg-view-text) .hg-project-name.serif,
  body.home:not(.hg-view-text) .hg-project-mainline .hg-project-name{
    font-family:'Instrument Serif',Georgia,serif!important;
    font-style:italic!important;
    font-weight:400!important;
    font-variation-settings:normal!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    font-size:clamp(25px,8.4vw,38px)!important;
    line-height:.94!important;
    letter-spacing:-.055em!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    max-width:calc(100vw - 108px)!important;
    padding:0!important;
    transform:none!important;
  }
  body.home:not(.hg-view-text) .hg-project-mainline:hover .hg-project-name{
    font-weight:400!important;
    font-variation-settings:normal!important;
    opacity:1!important;
    letter-spacing:-.055em!important;
  }
  body.home:not(.hg-view-text) .hg-project-client{
    font-size:11px!important;
    line-height:1.12!important;
  }

  /* Mode Texte mobile : noms plus lisibles et plus ergonomiques à sélectionner. */
  body.hg-view-text .hg-text-list{
    text-align:left!important;
    text-align-last:left!important;
    word-spacing:normal!important;
    padding-bottom:70px!important;
  }
  body.hg-view-text .hg-text-project-title,
  body.hg-view-text .hg-text-project::after{
    font-family:'Instrument Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
    font-style:normal!important;
    font-size:clamp(24px,7.6vw,36px)!important;
    line-height:1.14!important;
    letter-spacing:-.045em!important;
    font-weight:520!important;
    font-variation-settings:'wght' 520!important;
  }
  body.hg-view-text .hg-text-project::after{
    content:',\00a0'!important;
    opacity:.45!important;
  }
  body.hg-view-text .hg-text-project{
    opacity:.58!important;
  }
  body.hg-view-text .hg-text-list:hover .hg-text-project{
    opacity:.48!important;
  }
  body.hg-view-text .hg-text-list:hover .hg-text-project.is-active,
  body.hg-view-text .hg-text-project.is-active,
  body.hg-view-text .hg-text-project.is-locked{
    opacity:1!important;
  }
}


/* === THEME V98 — Header mobile équilibré === */
@media(max-width:720px){
  body .hg-header .hg-logo.hg-brand,
  body .hg-header a.hg-logo.hg-brand{
    min-width:58px!important;
    height:var(--hg-header-h,54px)!important;
    display:inline-flex!important;
    align-items:center!important;
  }
  body .hg-header .hg-brand-mark{
    font-size:31px!important;
    line-height:.92!important;
    letter-spacing:-.045em!important;
  }
  body .hg-header .hg-logo-star{
    font-size:23px!important;
    line-height:1!important;
    vertical-align:top!important;
  }
  body .hg-header .hg-header-inner{
    align-items:center!important;
  }
}

/* =========================================================
   THEME V99 — Mobile home compact hero strip
   Base: THEME V98 — HG Portfolio Share + Google
   Objectif: retirer l'espace vide entre le titre sticky mobile et les filtres,
   sans modifier les boutons de filtres eux-mêmes.
   ========================================================= */
@media(max-width:720px){
  :root{
    --hg-home-hero-h:118px!important;
  }

  body.home:not(.hg-view-text) .hg-home-hero{
    min-height:var(--hg-home-hero-h)!important;
    height:var(--hg-home-hero-h)!important;
    padding:7px 10px 8px!important;
    gap:0!important;
    justify-content:flex-start!important;
    overflow:hidden!important;
  }

  body.home:not(.hg-view-text) .hg-h1{
    margin:0!important;
    min-height:0!important;
  }

  body.home:not(.hg-view-text) .hg-h1.morphed{
    font-size:clamp(24px,7.4vw,32px)!important;
    line-height:.98!important;
    letter-spacing:-.05em!important;
    max-height:1.96em!important;
    margin:0!important;
  }

  body.home:not(.hg-view-text) .hg-h1.morphed.is-long-title{
    font-size:clamp(21px,6.5vw,28px)!important;
    line-height:1!important;
    letter-spacing:-.044em!important;
    max-height:2em!important;
  }

  /* On ne change pas les filtres : on retire seulement l'auto-margin qui créait
     la grande zone vide entre le titre et la ligne de filtres sur mobile. */
  body.home:not(.hg-view-text) .hg-filters-row--with-view{
    margin-top:6px!important;
  }

  body.home:not(.hg-view-text) .hg-projects{
    padding-top:calc(var(--hg-home-hero-h) + 8px)!important;
  }
}
