/* 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 V24 — Base V5 stable + SEO intro + palette ergonomique
   Objectif : ne pas toucher à la logique projets V5 / hover / médias.
   ========================================================= */
html[data-hg-version="v24-v5-stable-seo-palette-mobile"],
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-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{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-device-load-btn{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important;}
html[data-palette] .hg-acc-toggle:hover,
html[data-palette] .hg-view-btn:hover,
html[data-palette] .hg-device-load-btn:hover{opacity:.78!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{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-home-hero--editorial{padding-top:24px!important;}
.hg-hero-editorial-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:26px 56px;align-items:end;border-bottom:1px solid var(--rule);padding-bottom:22px;}
.hg-hero-kicker,.hg-home-seo-label{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:0 0 10px;}
.hg-home-hero--editorial .hg-h1,
.hg-home-hero--editorial .hg-h1.serif,
.hg-home-hero--editorial .hg-h1.morphed{font-family:'Instrument Serif',Georgia,serif!important;font-style:italic!important;font-weight:400!important;font-variation-settings:normal!important;letter-spacing:-.055em!important;line-height:.86!important;}
.hg-home-seo-intro p:not(.mono){font-size:15px;line-height:1.5;max-width:58ch;color:var(--muted2);margin:0;}
.hg-home-site-link-wrap{margin-top:18px;padding-top:14px;border-top:1px solid var(--rule);display:flex;align-items:center;justify-content:space-between;gap:16px;}
.hg-home-site-link{display:inline-flex!important;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid var(--rule2);color:var(--fg)!important;text-decoration:none!important;}
.hg-home-site-link:hover{background:var(--fg);color:var(--bg)!important;}
@media(max-width:760px){
  .hg-hero-editorial-grid{grid-template-columns:1fr;gap:16px;padding-bottom:18px;}
  .hg-home-seo-intro p:not(.mono){font-size:14px;line-height:1.5;max-width:none;}
  .hg-home-site-link-wrap{align-items:flex-start;flex-direction:column;}
}

/* Palette — panneau clair, presets en deux ronds sans carré autour */
.hg-palette-control{position:relative;z-index:120;}
.hg-palette-btn{width:32px;height:32px;border:0!important;background:transparent!important;display:flex;align-items:center;justify-content:center;gap:4px;padding:0!important;color:var(--fg);cursor:pointer;}
.hg-palette-btn:hover{opacity:.65;}
.hg-palette-dot{display:block;width:13px;height:13px;border-radius:999px;border:1px solid var(--rule2);box-shadow:0 0 0 1px rgba(255,255,255,.2) inset;}
.hg-palette-dot--bg{background:var(--palette-bg,var(--bg));}
.hg-palette-dot--fg{background:var(--palette-fg,var(--fg));margin-left:-4px;}
.hg-palette-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(340px,calc(100vw - 28px));padding:14px;border:1px solid var(--rule2);box-shadow:0 28px 90px rgba(0,0,0,.12);background:var(--bg);color:var(--fg);}
.hg-palette-panel[hidden]{display:none!important;}
.hg-palette-head{margin-bottom:12px;}
.hg-palette-title{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg);margin-bottom:4px;}
.hg-palette-head p,.hg-palette-note{font-size:12px;line-height:1.35;color:var(--muted2);margin:0;}
.hg-palette-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0;}
.hg-palette-presets button{min-height:38px;border:1px solid var(--rule);background:transparent;color:var(--fg);display:flex;align-items:center;gap:8px;padding:8px;cursor:pointer;text-align:left;}
.hg-palette-presets button:hover,.hg-palette-presets button.is-active{border-color:var(--fg);}
.hg-palette-presets button span{width:34px!important;height:18px!important;border:0!important;background:transparent!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;padding:0!important;box-shadow:none!important;}
.hg-palette-presets button span::before,.hg-palette-presets button span::after{content:"";display:block;width:15px;height:15px;border-radius:999px;border:1px solid rgba(0,0,0,.16);box-shadow:0 0 0 1px rgba(255,255,255,.22) inset;}
.hg-palette-presets button span::before{background:var(--sw-bg);}
.hg-palette-presets button span::after{background:var(--sw-fg);}
.hg-palette-presets em{font-style:normal;font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted2);}
.hg-palette-custom{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid var(--rule);padding-top:12px;margin-top:10px;}
.hg-palette-custom-title{grid-column:1/-1;font-size:10px;letter-spacing:.16em;color:var(--muted);}
.hg-palette-custom label{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--rule);padding:8px;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted2);}
.hg-palette-custom input{width:30px;height:24px;border:0;background:transparent;padding:0;cursor:pointer;}
.hg-palette-custom button{min-height:34px;border:1px solid var(--rule2);background:transparent;color:var(--fg);font-size:10px;text-transform:uppercase;letter-spacing:.12em;cursor:pointer;}
.hg-palette-custom button:hover{background:var(--fg);color:var(--bg);}
.hg-palette-preview{margin-top:12px;padding:12px;border:1px solid var(--rule);background:var(--preview-bg,var(--bg));color:var(--preview-fg,var(--fg));}
.hg-palette-preview span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.14em;opacity:.55;margin-bottom:5px;}
.hg-palette-preview strong{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:28px;font-weight:400;letter-spacing:-.04em;}
@media(max-width:760px){.hg-palette-panel{right:-42px;}.hg-palette-presets{grid-template-columns:1fr;}}

/* Vidéo — icône texte Play/Pause centrée, sans cercle ni conteneur */
.hg-video-play,.hg-video-play-single{position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;color:#F0EBE3!important;display:block!important;padding:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;pointer-events:none!important;z-index:6!important;font-size:10px!important;line-height:1!important;letter-spacing:.16em!important;text-transform:uppercase!important;text-shadow:0 1px 18px rgba(0,0,0,.65),0 1px 2px rgba(0,0,0,.6)!important;opacity:.95!important;}
.hg-video-play::before,.hg-video-play-single::before{content:none!important;display:none!important;}
.hg-video-label{display:none!important;}
.hg-video-tile::after,.hg-masonry-btn:has(video)::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at center, rgba(0,0,0,.28), transparent 38%);opacity:.55;pointer-events:none;z-index:4;}
@media(hover:hover) and (pointer:fine){.hg-video-tile:hover .hg-video-play,.hg-masonry-btn:hover .hg-video-play{opacity:1!important;}}

/* Single previews — click-to-load, no auto iframe loop on mobile */
.hg-device-load-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;min-height:38px;padding:0 14px;border:1px solid var(--rule2);background:var(--fg);color:var(--bg);font-size:10px;letter-spacing:.14em;text-transform:uppercase;}
.hg-device-section--single-safe .hg-device-iframe{opacity:0;transition:opacity .3s var(--ease);}
.hg-device-section--single-safe.is-device-loaded .hg-device-iframe{opacity:1;}
.hg-device-section--single-safe.is-device-loading .hg-device-load-btn{display:none;}
@media(hover:none),(pointer:coarse),(max-width:720px){
  .hg-device-section--single-safe .hg-device-stage,.hg-device-section--single-safe .hg-device-toggle{display:none!important;}
  .hg-device-section--single-safe{padding:18px var(--gutter)!important;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);}
  .hg-device-section--single-safe .hg-device-head{margin-bottom:0!important;}
  .hg-device-section--single-safe .hg-device-link{margin:12px 0 0!important;}
}

/* V24 marker */
html::before{content:"";display:none;}

/* === HG V26 — reliable video thumbnails, no autoplay, no title-only tiles === */
.hg-video-tile .hg-video-poster,
.hg-masonry-btn .hg-video-poster{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  transform:none;
  position:relative;
  z-index:1;
  background:var(--bg2)!important;
}
.hg-video-tile:hover .hg-video-poster,
.hg-masonry-btn:hover .hg-video-poster{transform:scale(1.035)!important;transition:transform .56s var(--ease)!important;}
.hg-video-tile video{display:none!important;}
.hg-video-tile::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.0),rgba(0,0,0,.18));z-index:2;pointer-events:none;}
.hg-video-tile::after,.hg-masonry-btn:has(.hg-video-poster)::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(0,0,0,.24),transparent 42%);opacity:.72;z-index:3;pointer-events:none;}
.hg-video-play,.hg-video-play-single{position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;z-index:5!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;text-shadow:0 1px 18px rgba(0,0,0,.7),0 1px 2px rgba(0,0,0,.65)!important;width:auto!important;height:auto!important;display:block!important;opacity:1!important;padding:0!important;font-size:10px!important;line-height:1!important;letter-spacing:.16em!important;text-transform:uppercase!important;pointer-events:none!important;}
.hg-video-play::before,.hg-video-play-single::before{content:none!important;display:none!important;}
.hg-video-label{display:none!important;}
@media(hover:hover) and (pointer:fine){.hg-video-tile .hg-video-play{opacity:.82!important}.hg-video-tile:hover .hg-video-play{opacity:1!important}}


/* =========================================================
   HG V27 FINAL — stable V5 projects + SEO + palettes + safe video previews
   ========================================================= */
html[data-hg-version="v27-final-stable"]{background:var(--bg)!important;color:var(--fg)!important;}

/* Video tiles: real still preview, no autoplay, no circular icon. */
.hg-video-tile,
.hg-masonry-btn:has(.hg-video-preview){
  background:var(--bg2)!important;
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.hg-video-tile video.hg-video-preview,
.hg-masonry-btn video.hg-video-preview{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:1!important;
  visibility:visible!important;
  background:var(--bg2)!important;
  position:relative!important;
  z-index:1!important;
  pointer-events:none!important;
}
.hg-video-tile video.hg-video-preview[poster],
.hg-masonry-btn video.hg-video-preview[poster]{
  background-size:cover!important;
  background-position:center!important;
}
.hg-video-tile .hg-video-poster,
.hg-masonry-btn .hg-video-poster{display:none!important;}
.hg-video-tile::before,
.hg-masonry-btn:has(.hg-video-preview)::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.18))!important;
}
.hg-video-tile::after,
.hg-masonry-btn:has(.hg-video-preview)::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  pointer-events:none!important;
  background:radial-gradient(circle at center,rgba(0,0,0,.20),transparent 44%)!important;
  opacity:.75!important;
}
.hg-video-play,
.hg-video-play-single{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  color:#fff!important;
  display:block!important;
  padding:0!important;
  z-index:5!important;
  pointer-events:none!important;
  font-size:10px!important;
  line-height:1!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  text-shadow:0 1px 18px rgba(0,0,0,.74),0 1px 2px rgba(0,0,0,.68)!important;
  opacity:.96!important;
}
.hg-video-play::before,
.hg-video-play-single::before{content:none!important;display:none!important;}
.hg-video-label{display:none!important;}
.hg-video-fallback-neutral{display:none!important;}
@media(hover:hover) and (pointer:fine){
  .hg-video-tile:hover video.hg-video-preview,
  .hg-masonry-btn:hover video.hg-video-preview{transform:scale(1.035)!important;transition:transform .56s var(--ease)!important;}
  .hg-video-tile .hg-video-play{opacity:.84!important;}
  .hg-video-tile:hover .hg-video-play{opacity:1!important;}
}

/* Palette presets: two visible circles only, no heavy square container around the swatches. */
.hg-palette-presets button span{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  width:38px!important;
  height:20px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
}
.hg-palette-presets button span::before,
.hg-palette-presets button span::after{
  width:16px!important;
  height:16px!important;
  border-radius:999px!important;
  border:1px solid rgba(0,0,0,.18)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.22) inset!important;
}
.hg-palette-presets button span::before{background:var(--sw-bg)!important;}
.hg-palette-presets button span::after{background:var(--sw-fg)!important;}

/* Single project iframe previews are manual; homepage remains iframe-free. */
.hg-device-section--single-safe iframe.hg-device-iframe:not(.is-loaded){opacity:0!important;}

/* Final marker: v27-final-stable */


/* =========================================================
   HG V28 — Sticky project title focus
   Au hover desktop / scroll mobile, l’intro SEO se replie
   pour laisser uniquement le nom du projet dans la zone sticky.
   ========================================================= */
.hg-home-hero--editorial{
  transition:padding .34s var(--ease), background .28s var(--ease), border-color .28s var(--ease) !important;
}
.hg-home-hero--editorial .hg-hero-editorial-grid{
  transition:grid-template-columns .34s var(--ease), gap .34s var(--ease), padding .34s var(--ease), border-color .34s var(--ease) !important;
}
.hg-home-hero--editorial .hg-hero-kicker,
.hg-home-hero--editorial .hg-home-seo-intro,
.hg-home-hero--editorial .hg-filters{
  transition:opacity .24s var(--ease), transform .34s var(--ease), max-height .34s var(--ease), margin .34s var(--ease), padding .34s var(--ease) !important;
  overflow:hidden;
  max-height:240px;
}
.hg-home-hero--editorial.is-project-mode{
  padding-top:12px!important;
  padding-bottom:10px!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
  display:block!important;
  padding-bottom:0!important;
  border-bottom-color:transparent!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-kicker,
.hg-home-hero--editorial.is-project-mode .hg-home-seo-intro,
.hg-home-hero--editorial.is-project-mode .hg-filters{
  opacity:0!important;
  transform:translateY(-8px)!important;
  max-height:0!important;
  margin:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  pointer-events:none!important;
}
.hg-home-hero--editorial.is-project-mode .hg-h1{
  display:block;
  max-width:min(1100px,92vw);
  font-size:clamp(38px,6.2vw,86px)!important;
  line-height:.88!important;
  white-space:normal;
  overflow-wrap:normal;
  text-wrap:balance;
}
@media(max-width:760px){
  .hg-home-hero--editorial.is-project-mode{
    padding-top:10px!important;
    padding-bottom:9px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    font-size:clamp(30px,11vw,54px)!important;
    line-height:.9!important;
    letter-spacing:-.04em!important;
    max-width:96vw;
  }
}
@media(prefers-reduced-motion:reduce){
  .hg-home-hero--editorial,
  .hg-home-hero--editorial .hg-hero-editorial-grid,
  .hg-home-hero--editorial .hg-hero-kicker,
  .hg-home-hero--editorial .hg-home-seo-intro,
  .hg-home-hero--editorial .hg-filters{transition:none!important;}
}


/* =========================================================
   HG V29 — Reduce About / Services / Contact editorial text
   Objectif : conserver le SEO, mais rendre les grands textes
   beaucoup plus calmes, plus lisibles, avec plus de mots par ligne.
   ========================================================= */
.hg-about-page .hg-about-h1,
.hg-about-page .hg-about-h1 p,
.hg-about-page .hg-about-h1 em{
  font-size:clamp(27px,2.45vw,42px)!important;
  line-height:1.12!important;
  letter-spacing:-.022em!important;
  max-width:860px!important;
  width:100%!important;
  text-wrap:pretty!important;
}
@media (min-width:861px){
  .hg-about-page .hg-about-hero2{
    grid-template-columns:minmax(280px,390px) minmax(0,860px)!important;
    gap:clamp(36px,4vw,64px)!important;
    justify-content:center!important;
  }
  .hg-about-page .hg-about-photo{max-width:390px!important;}
  .hg-about-page .hg-about-h1{
    font-size:clamp(30px,2.65vw,44px)!important;
    max-width:860px!important;
  }
}
@media (max-width:720px){
  .hg-about-page .hg-about-h1,
  .hg-about-page .hg-about-h1 p,
  .hg-about-page .hg-about-h1 em{
    font-size:clamp(25px,7.2vw,34px)!important;
    line-height:1.13!important;
    letter-spacing:-.018em!important;
    max-width:100%!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(24px,2.25vw,38px)!important;
  line-height:1.18!important;
  letter-spacing:-.018em!important;
  max-width:920px!important;
  width:100%!important;
  text-wrap:pretty!important;
  margin-bottom:34px!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(24px,6.8vw,34px)!important;
    line-height:1.16!important;
    max-width:100%!important;
    margin-bottom:28px!important;
  }
}

.hg-default-page.hg-seo-page{
  max-width:1180px;
  margin:0 auto;
  padding:48px 28px 88px;
  color:var(--fg);
}
.hg-seo-article{max-width:100%;}
.hg-seo-article > h1{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  font-size:clamp(36px,4.8vw,68px)!important;
  line-height:.98!important;
  letter-spacing:-.045em!important;
  max-width:14ch!important;
  margin:0 0 34px!important;
}
.hg-seo-content{
  display:grid;
  gap:34px;
  max-width:900px;
}
.hg-seo-content section{
  border-top:1px solid var(--rule);
  padding-top:24px;
}
.hg-seo-content .hg-seo-lead{
  border-top:0;
  padding-top:0;
}
.hg-seo-content p,
.hg-seo-content li{
  font-size:clamp(15px,1.05vw,17px)!important;
  line-height:1.72!important;
  color:var(--muted2)!important;
  max-width:78ch!important;
}
.hg-seo-content .hg-seo-lead p{
  font-size:clamp(16px,1.35vw,19px)!important;
  line-height:1.58!important;
  color:var(--fg)!important;
  max-width:76ch!important;
}
.hg-seo-content h2{
  font-family:'Instrument Serif',Georgia,'Times New Roman',serif!important;
  font-style:italic!important;
  font-weight:400!important;
  font-size:clamp(26px,2.4vw,38px)!important;
  line-height:1.04!important;
  letter-spacing:-.025em!important;
  margin:0 0 14px!important;
}
.hg-seo-content h3{
  font-size:clamp(16px,1.15vw,19px)!important;
  line-height:1.24!important;
  letter-spacing:-.01em!important;
  margin:18px 0 7px!important;
}
.hg-seo-content ul{
  list-style:none!important;
  display:grid!important;
  gap:7px!important;
  padding:0!important;
  margin:0!important;
}
.hg-seo-content li::before{
  content:'— ';
  color:var(--muted);
}
@media(max-width:720px){
  .hg-default-page.hg-seo-page{padding:40px 20px 72px;}
  .hg-seo-article > h1{font-size:clamp(34px,11vw,52px)!important;max-width:100%!important;margin-bottom:26px!important;}
  .hg-seo-content{gap:28px;max-width:100%;}
  .hg-seo-content p,.hg-seo-content li{font-size:15px!important;line-height:1.68!important;}
  .hg-seo-content .hg-seo-lead p{font-size:16px!important;line-height:1.55!important;}
  .hg-seo-content h2{font-size:clamp(25px,7.8vw,34px)!important;}
}


/* =========================================================
   HG V30 — Mobile smooth title + cleaner video control
   Base: V29 stable. Objectif: plus d'espace sur mobile,
   pas de scintillement au scroll, icône vidéo simple.
   ========================================================= */
.hg-home-hero--editorial{
  will-change:transform;
  backface-visibility:hidden;
}
.hg-home-hero--editorial .hg-h1{
  transform:translateZ(0);
}
.hg-home-hero--editorial .hg-hero-kicker,
.hg-home-hero--editorial .hg-home-seo-intro,
.hg-home-hero--editorial .hg-filters{
  transition:opacity .18s ease, transform .24s var(--ease), visibility .18s ease!important;
}
.hg-home-hero--editorial.is-project-mode{
  padding-top:16px!important;
  padding-bottom:14px!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
  min-height:92px!important;
  display:flex!important;
  align-items:center!important;
  padding-bottom:10px!important;
  border-bottom-color:var(--rule)!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-title-block{
  width:100%!important;
  min-width:0!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-kicker,
.hg-home-hero--editorial.is-project-mode .hg-home-seo-intro,
.hg-home-hero--editorial.is-project-mode .hg-filters{
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(-6px)!important;
  pointer-events:none!important;
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
}
.hg-home-hero--editorial.is-project-mode .hg-h1{
  font-size:clamp(36px,5.6vw,74px)!important;
  line-height:.92!important;
  letter-spacing:-.045em!important;
  text-wrap:balance;
}
@media(max-width:760px){
  .hg-home-hero--editorial{padding-top:18px!important;padding-bottom:14px!important;}
  .hg-home-hero--editorial .hg-hero-editorial-grid{gap:18px!important;padding-bottom:20px!important;}
  .hg-home-hero--editorial .hg-home-seo-intro p:not(.mono){font-size:13px!important;line-height:1.55!important;}
  .hg-home-hero--editorial.is-project-mode{
    padding-top:14px!important;
    padding-bottom:14px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
    min-height:104px!important;
    padding-bottom:8px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    font-size:clamp(31px,9.6vw,48px)!important;
    line-height:.96!important;
    letter-spacing:-.04em!important;
    max-width:calc(100vw - 40px)!important;
  }
  .hg-projects{padding-top:14px!important;}
}

/* Video tiles: pure text button, no circle/background, contrast by blend mode. */
.hg-video-tile::before,
.hg-video-tile::after,
.hg-masonry-btn:has(.hg-video-poster)::after,
.hg-masonry-btn:has(video)::after{
  content:none!important;
  display:none!important;
}
.hg-video-play,
.hg-video-play-single{
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%) translateZ(0)!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding:0!important;
  width:auto!important;
  height:auto!important;
  color:#fff!important;
  mix-blend-mode:difference!important;
  text-shadow:none!important;
  font-size:10px!important;
  line-height:1!important;
  letter-spacing:.17em!important;
  text-transform:uppercase!important;
  opacity:1!important;
}
.hg-video-poster--empty{
  display:block!important;
  width:100%!important;
  height:100%!important;
  background:linear-gradient(135deg,var(--bg2),var(--rule2))!important;
}

/* V30 marker */
html::after{content:"v30-mobile-smooth-video-icon";display:none;}


/* =========================================================
   HG V31 — Smooth desktop hover + mobile title focus
   Desktop: change seulement le nom, sans replier le hero.
   Mobile: Hugo au départ, puis l'intro disparaît au scroll pour le titre projet.
   ========================================================= */
.hg-home-hero--editorial .hg-h1{
  transition:opacity .18s ease, transform .22s var(--ease), letter-spacing .28s var(--ease), font-size .28s var(--ease)!important;
  will-change:opacity,transform;
}
.hg-home-hero--editorial .hg-h1.is-title-changing{
  opacity:.36!important;
  transform:translate3d(0,5px,0)!important;
}
@media(hover:hover) and (pointer:fine){
  .hg-home-hero--editorial.is-project-mode{
    padding-top:24px!important;
    padding-bottom:16px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(280px,420px)!important;
    gap:26px 56px!important;
    align-items:end!important;
    min-height:0!important;
    padding-bottom:22px!important;
    border-bottom-color:var(--rule)!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-title-block{width:auto!important;}
  .hg-home-hero--editorial.is-project-mode .hg-hero-kicker,
  .hg-home-hero--editorial.is-project-mode .hg-home-seo-intro,
  .hg-home-hero--editorial.is-project-mode .hg-filters{
    position:static!important;
    width:auto!important;
    height:auto!important;
    overflow:visible!important;
    clip-path:none!important;
    max-height:240px!important;
    margin:0 0 10px!important;
    padding:0!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    pointer-events:auto!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-filters{margin-top:10px!important;}
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    font-size:clamp(44px,8vw,108px)!important;
    line-height:.86!important;
    letter-spacing:-.055em!important;
    max-width:12.8ch!important;
  }
  .hg-project-card{transition:opacity .34s var(--ease), filter .34s var(--ease)!important;}
}
@media(max-width:760px){
  .hg-home-hero--editorial{padding-top:18px!important;padding-bottom:14px!important;}
  .hg-home-hero--editorial .hg-hero-editorial-grid{gap:18px!important;padding-bottom:20px!important;}
  .hg-home-hero--editorial.is-project-mode{
    padding-top:16px!important;
    padding-bottom:16px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
    min-height:112px!important;
    display:flex!important;
    align-items:center!important;
    padding-bottom:10px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    font-size:clamp(31px,9.5vw,50px)!important;
    line-height:.96!important;
    letter-spacing:-.04em!important;
    max-width:calc(100vw - 40px)!important;
  }
}
.hg-video-play,.hg-video-play-single{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  color:#fff!important;
  mix-blend-mode:difference!important;
  text-shadow:none!important;
  font-size:10px!important;
  letter-spacing:.17em!important;
  text-transform:uppercase!important;
  opacity:1!important;
}
html::after{content:"v31-smooth-hover-mobile-title";display:none;}


/* =========================================================
   HG V32 — Stable two-line sticky project title
   Objectif : éviter que la zone hero saute quand un titre projet
   passe d'une ligne à deux lignes au hover / scroll.
   ========================================================= */
.hg-home-hero--editorial .hg-hero-title-block{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  min-height:clamp(124px,15.4vw,208px)!important;
}
.hg-home-hero--editorial .hg-h1,
.hg-home-hero--editorial .hg-h1.serif,
.hg-home-hero--editorial .hg-h1.morphed{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  max-height:1.74em!important;
  min-height:1.74em!important;
  line-height:.87!important;
  text-wrap:balance!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
@media(hover:hover) and (pointer:fine){
  .hg-home-hero--editorial.is-project-mode .hg-hero-title-block{
    min-height:clamp(124px,15.4vw,208px)!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    max-width:10.9ch!important;
    min-height:1.74em!important;
    max-height:1.74em!important;
    font-size:clamp(44px,8vw,108px)!important;
  }
}
@media(max-width:760px){
  .hg-home-hero--editorial .hg-hero-title-block{
    min-height:clamp(92px,25vw,128px)!important;
  }
  .hg-home-hero--editorial .hg-h1,
  .hg-home-hero--editorial .hg-h1.serif,
  .hg-home-hero--editorial .hg-h1.morphed{
    max-height:1.86em!important;
    min-height:1.86em!important;
    line-height:.93!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-title-block{
    min-height:clamp(82px,22vw,118px)!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    max-width:11.8ch!important;
    min-height:1.86em!important;
    max-height:1.86em!important;
  }
}
html::after{content:"v32-stable-two-line-title";display:none;}


/* =========================================================
   HG V33 — Real video previews restored
   Base V32 + vraie balise vidéo preview, autoplay desktop visible,
   mobile passif pour éviter le chargement infini.
   ========================================================= */
.hg-video-tile{background:var(--bg2)!important;position:relative!important;overflow:hidden!important;isolation:isolate!important;}
.hg-video-tile video.hg-video-preview{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:1!important;
  visibility:visible!important;
  position:relative!important;
  z-index:1!important;
  background:var(--bg2)!important;
  pointer-events:none!important;
}
.hg-video-tile .hg-video-poster{display:none!important;}
.hg-video-tile .hg-video-fallback-neutral{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  background:var(--bg2)!important;
}
.hg-video-tile.video-ready .hg-video-fallback-neutral{opacity:0!important;visibility:hidden!important;}
.hg-video-tile::before,.hg-video-tile::after{content:none!important;display:none!important;}
.hg-video-play,.hg-video-play-single{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%) translateZ(0)!important;
  z-index:5!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  width:auto!important;
  height:auto!important;
  color:#fff!important;
  mix-blend-mode:difference!important;
  text-shadow:none!important;
  font-size:10px!important;
  line-height:1!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
  pointer-events:none!important;
  opacity:1!important;
}
.hg-video-play::before,.hg-video-play-single::before{content:none!important;display:none!important;}
.hg-video-label{display:none!important;}
@media(hover:hover) and (pointer:fine){
  .hg-video-tile video.hg-video-preview{transition:transform .56s var(--ease),filter .56s var(--ease)!important;}
  .hg-video-tile:hover video.hg-video-preview{transform:scale(1.035)!important;}
}
html::after{content:"v33-real-video-previews";display:none;}

/* =========================================================
   HG V34 — Final polish: project button + light-first palette UX
   ========================================================= */
html[data-hg-version="v34-final-polish-buttons-palette-light"] body .hg-view-btn,
body .hg-view-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:auto!important;
  min-width:132px!important;
  max-width:none!important;
  height:34px!important;
  min-height:34px!important;
  max-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(--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;
  text-decoration:none!important;
  cursor:pointer!important;
  transform:none!important;
  opacity:1!important;
  filter:none!important;
  transition:opacity .18s ease,transform .18s ease,background-color .18s ease,color .18s ease!important;
  -webkit-tap-highlight-color:transparent!important;
}
html[data-hg-version="v34-final-polish-buttons-palette-light"] body .hg-view-btn:hover,
html[data-hg-version="v34-final-polish-buttons-palette-light"] body .hg-view-btn:focus-visible,
body .hg-view-btn:hover,
body .hg-view-btn:focus-visible{
  opacity:.82!important;
  transform:translateY(-1px)!important;
}
html[data-hg-version="v34-final-polish-buttons-palette-light"] body .hg-view-btn .serif,
body .hg-view-btn .serif{
  font-family:'Instrument Sans',system-ui,sans-serif!important;
  font-style:normal!important;
  font-size:12px!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
html[data-hg-version="v34-final-polish-buttons-palette-light"] .hg-acc-cta{
  gap:10px!important;
}

/* Palette trigger: subtle color-aware pulse only on the color control */
.hg-palette-btn{
  position:relative!important;
  isolation:isolate!important;
  overflow:visible!important;
  transition:opacity .18s ease,transform .18s ease!important;
}
.hg-palette-btn::before{
  content:"";
  position:absolute;
  inset:-9px;
  border-radius:999px;
  z-index:-1;
  pointer-events:none;
  opacity:.14;
  background:radial-gradient(circle, var(--palette-fg,var(--fg)) 0%, color-mix(in srgb, var(--palette-fg,var(--fg)) 28%, transparent) 34%, transparent 66%);
  filter:blur(10px);
  transform:scale(.86);
}
.hg-palette-btn::after{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:999px;
  z-index:-1;
  pointer-events:none;
  opacity:.24;
  border:1px solid color-mix(in srgb, var(--palette-fg,var(--fg)) 34%, transparent);
  transform:scale(.92);
}
@media (prefers-reduced-motion:no-preference){
  .hg-palette-btn::before{animation:hgPaletteSoftGlow 4.8s ease-in-out infinite;}
  .hg-palette-btn::after{animation:hgPaletteSoftRing 4.8s ease-in-out infinite;}
}
@keyframes hgPaletteSoftGlow{
  0%,100%{opacity:.09;transform:scale(.82);filter:blur(9px);}
  48%{opacity:.24;transform:scale(1.12);filter:blur(13px);}
}
@keyframes hgPaletteSoftRing{
  0%,100%{opacity:.12;transform:scale(.9);}
  48%{opacity:.36;transform:scale(1.08);}
}
.hg-palette-btn[aria-expanded="true"]::before,
.hg-palette-btn:hover::before{opacity:.28!important;transform:scale(1.08)!important;}
.hg-palette-btn[aria-expanded="true"]::after,
.hg-palette-btn:hover::after{opacity:.44!important;transform:scale(1.04)!important;}
.hg-palette-panel{
  box-shadow:0 22px 70px rgba(0,0,0,.12),0 0 36px color-mix(in srgb, var(--palette-fg,var(--fg)) 12%, transparent)!important;
}
.hg-palette-presets button.is-active{
  box-shadow:inset 0 0 0 1px var(--fg),0 0 18px color-mix(in srgb, var(--fg) 12%, transparent)!important;
}
.hg-palette-presets button:hover{
  box-shadow:0 0 18px color-mix(in srgb, var(--fg) 9%, transparent)!important;
}

@media(max-width:720px){
  body .hg-view-btn{
    min-width:126px!important;
    height:34px!important;
    padding:0 12px!important;
  }
}


/* =========================================================
   HG V35 — Sticky mobile filters + desktop intro condense
   Base V34. Objectif : au scroll mobile, garder le nom projet
   + les filtres accessibles ; sur desktop, masquer le texte de
   présentation au scroll sans casser le hover des titres.
   ========================================================= */
.hg-home-hero--editorial{
  contain:layout paint style;
}
.hg-home-hero--editorial .hg-filters{
  position:relative;
  z-index:3;
}

/* Desktop: au scroll, seul le bloc de présentation à droite disparaît.
   Les filtres restent disponibles et le titre projet peut continuer à changer au hover. */
@media (min-width:761px){
  .hg-home-hero--editorial.is-scroll-condensed .hg-home-seo-intro{
    opacity:0!important;
    visibility:hidden!important;
    transform:translate3d(0,-8px,0)!important;
    pointer-events:none!important;
    max-height:0!important;
    overflow:hidden!important;
  }
  .hg-home-hero--editorial.is-scroll-condensed .hg-hero-editorial-grid{
    grid-template-columns:minmax(0,1fr) 0px!important;
    gap:0!important;
    padding-bottom:18px!important;
  }
  .hg-home-hero--editorial.is-scroll-condensed .hg-hero-title-block{
    max-width:min(980px,100%)!important;
  }
}

/* Mobile: en mode projet, on cache l'intro SEO et le kicker,
   mais on garde les filtres visibles sous le nom du projet. */
@media (max-width:760px){
  .hg-home-hero--editorial.is-project-mode{
    padding-top:12px!important;
    padding-bottom:8px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
    display:block!important;
    min-height:0!important;
    padding-bottom:6px!important;
    border-bottom-color:transparent!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-title-block{
    min-height:clamp(76px,21vw,112px)!important;
    display:flex!important;
    justify-content:flex-end!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-kicker,
  .hg-home-hero--editorial.is-project-mode .hg-home-seo-intro{
    opacity:0!important;
    visibility:hidden!important;
    transform:translate3d(0,-6px,0)!important;
    pointer-events:none!important;
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip-path:inset(50%)!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-filters{
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    pointer-events:auto!important;
    position:relative!important;
    width:auto!important;
    height:auto!important;
    clip-path:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    max-height:42px!important;
    margin:8px 0 0!important;
    padding:0 0 7px!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:18px!important;
    border-top:1px solid var(--rule)!important;
    padding-top:9px!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-filters::-webkit-scrollbar{display:none!important;}
  .hg-home-hero--editorial.is-project-mode .hg-filter{
    flex:0 0 auto!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    max-width:calc(100vw - 34px)!important;
    min-height:1.82em!important;
    max-height:1.82em!important;
    font-size:clamp(31px,9.4vw,48px)!important;
    line-height:.91!important;
  }
  .hg-projects{padding-top:10px!important;}
}

/* État initial mobile : l'intro reste lisible, mais compacte. */
@media(max-width:760px){
  .hg-home-hero--editorial:not(.is-project-mode) .hg-home-seo-intro p:not(.mono){
    font-size:13px!important;
    line-height:1.52!important;
  }
  .hg-home-hero--editorial:not(.is-project-mode) .hg-filters{
    margin-top:12px!important;
  }
}

html::after{content:"v35-mobile-filters-scroll-intro";display:none;}


/* =========================================================
   HG V53 — Stable hero title + clean palette icon
   ========================================================= */

/* Palette trigger: one clean square, split diagonally, no radius/glow/shadow. */
.hg-header .hg-palette-control{
  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;
  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{
  opacity:1!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
.hg-header .hg-palette-btn::before,
.hg-header .hg-palette-btn::after,
.hg-header .hg-palette-dot,
#hg-palette-btn .hg-palette-dot{
  content:none!important;
  display:none!important;
}

/* Palette panel: keep it simple, remove added glow/radius. */
.hg-palette-panel,
.hg-palette-preview,
.hg-palette-presets button,
.hg-palette-presets button span,
.hg-palette-custom label,
.hg-palette-custom button{
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
}
.hg-palette-presets button span{
  background:linear-gradient(135deg,var(--sw-bg) 0 49.75%,var(--sw-fg) 50.25% 100%)!important;
}
.hg-palette-presets button span::before,
.hg-palette-presets button span::after{
  content:none!important;
  display:none!important;
}

/* Native color inputs: square on desktop and mobile. */
.hg-palette-custom input[type="color"],
#hg-palette-bg,
#hg-palette-fg{
  border-radius:0!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;
}

/* Hero: no title animation, no crop, stable mode switching. */
.hg-home-hero--editorial,
.hg-home-hero--editorial *,
.hg-home-hero--editorial .hg-h1{
  animation:none!important;
}
.hg-home-hero--editorial .hg-h1,
.hg-home-hero--editorial .hg-h1.is-title-changing,
.hg-home-hero--editorial .hg-h1.morphed{
  transition:none!important;
  transform:none!important;
  opacity:1!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-kicker,
.hg-home-hero--editorial.is-project-mode .hg-home-seo-intro{
  display:none!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
  display:block!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  padding-bottom:12px!important;
}
.hg-home-hero--editorial.is-project-mode .hg-hero-title-block{
  width:100%!important;
  max-width:100%!important;
}
.hg-home-hero--editorial.is-project-mode .hg-h1{
  width:100%!important;
  max-width:100%!important;
  white-space:nowrap!important;
  line-height:.92!important;
  max-height:none!important;
  min-height:0!important;
  font-size:clamp(42px,7.4vw,118px)!important;
}

/* Mobile: two lines allowed so long project titles never leave the frame. */
@media(max-width:760px){
  .hg-home-hero--editorial.is-project-mode{
    padding-top:12px!important;
    padding-bottom:10px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-hero-editorial-grid{
    padding-bottom:8px!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-h1{
    white-space:normal!important;
    overflow:visible!important;
    display:block!important;
    font-size:clamp(34px,10.6vw,54px)!important;
    line-height:.92!important;
    max-height:1.95em!important;
    min-height:1.84em!important;
  }
  .hg-home-hero--editorial.is-project-mode .hg-filters-row,
  .hg-home-hero--editorial.is-project-mode .hg-filters{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
}

/* Keep top mode as the original V1 presentation. */
.hg-home-hero--editorial.is-top-mode .hg-hero-kicker,
.hg-home-hero--editorial.is-top-mode .hg-home-seo-intro{
  display:block;
}

