/*
Theme Name: Heroes Group
Theme URI: https://heroesgroup.fr
Author: Heroes Group
Description: Thème du site Heroes Group. Sombre, élégant, entièrement modifiable dans l’éditeur de blocs. À l’activation, il crée la page d’accueil et importe les photos dans la médiathèque.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heroes-group
*/

:root{
  --ink:#0b0b0d; --ink-2:#141417; --ink-3:#1d1d21; --line:#2c2c31;
  --paper:#f3f2ef; --mute:#a3a2a8; --dim:#7d7c83; --red:#d7262e;
  --serif:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap:1180px; --gutter:clamp(16px,5vw,48px);
}
html{scroll-behavior:smooth;scroll-padding-top:84px}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
body{margin:0;-webkit-font-smoothing:antialiased}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}
h1,h2,h3{text-wrap:balance}

/* Neutralise les marges automatiques de WordPress dans nos grilles */
body .wp-site-blocks > *,
body .wp-block-post-content > *,
body .hg-main > *,
body .hg-section > *,
body .hg-head > *, body .hg-head-title > *,
body .hg-story > *, body .hg-story-text > *,
body .hg-facts > *, body .hg-fact > *,
body .hg-acts > *, body .hg-act > *, body .hg-duo > *,
body .hg-places > *, body .hg-place > *,
body .hg-route > *, body .hg-stop > *,
body .hg-contact > *, body .hg-person > *, body .hg-lines > *, body .hg-line > *,
body .hg-bar > *, body .hg-foot > *, body .hg-foot-logos > *{margin-block:0}

/* Libellés */
.hg-label{font-size:12px;font-weight:400;letter-spacing:.32em;text-transform:uppercase;color:var(--dim)}
body .wp-block-separator.hg-rule{width:64px;height:2px;background:var(--red);border:0;opacity:1}
.hg-lead{color:var(--mute);max-width:56ch}

/* En-tête */
.hg-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:20;background:rgba(11,11,13,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hg-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;height:72px;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter);box-sizing:border-box}
.hg-brand a{display:flex;align-items:baseline;gap:12px;text-decoration:none;font-size:11px;letter-spacing:.34em;color:var(--mute)}
.hg-brand strong{font-family:var(--serif);font-weight:600;font-size:28px;letter-spacing:.18em;color:var(--paper)}
.hg-nav{font-size:13px;font-weight:400;letter-spacing:.2em;text-transform:uppercase}
body .hg-nav, body .hg-nav .wp-block-navigation__container{gap:34px}
.hg-nav .wp-block-navigation-item__content{color:var(--mute);text-decoration:none;padding-block:8px;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.hg-nav .wp-block-navigation-item__content:hover{color:var(--paper);border-color:var(--red)}
.hg-nav .wp-block-navigation__responsive-container-open{color:var(--paper);border:1px solid var(--line);border-radius:4px;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
.hg-nav .wp-block-navigation__responsive-container.is-menu-open{padding:24px var(--gutter)}
.hg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:15px;padding-block:14px}
@media (min-width:600px) and (max-width:860px){.hg-nav{font-size:12px;letter-spacing:.12em}body .hg-nav, body .hg-nav .wp-block-navigation__container{gap:18px}}

/* Sections */
.hg-section{padding-block:clamp(72px,10vw,120px);padding-inline:var(--gutter);border-bottom:1px solid var(--line)}
body .hg-section > *{max-width:var(--wrap);margin-inline:auto}
body .hg-section > .hg-head{margin-bottom:56px}
.hg-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:32px 64px;align-items:end}
.hg-head-title{display:flex;flex-direction:column;gap:18px}
.hg-head h2{font-size:clamp(40px,5.5vw,68px)}
@media (max-width:860px){.hg-head{grid-template-columns:1fr}}

/* Accueil */
.hg-hero{padding-block:clamp(72px,12vw,150px) clamp(64px,10vw,120px)}
body .hg-hero > .hg-label{margin-bottom:28px}
.hg-hero .hg-title{font-size:clamp(52px,9vw,124px);letter-spacing:-.01em;max-width:11ch}
.hg-hero .hg-title em{font-style:italic;color:var(--mute)}
body .hg-hero > .hg-rule{margin-block:40px 32px}
body .hg-hero > .hg-lead{font-size:clamp(18px,2vw,21px);max-width:52ch}
body .hg-hero > *, body .hg-hero > .hg-rule{margin-inline:max(0px, calc((100% - var(--wrap)) / 2))}
.hg-trades{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:48px!important;font-size:13px;letter-spacing:.3em;text-transform:uppercase;color:var(--paper)}
.hg-trades li{display:flex;align-items:center;gap:28px;margin:0}
.hg-trades li+li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--red)}

/* Le groupe */
.hg-story{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:56px}
.hg-story-text{display:flex;flex-direction:column;gap:28px}
.hg-intro{font-family:var(--serif);font-size:clamp(24px,2.6vw,30px);line-height:1.35}
.hg-timeline{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.hg-timeline li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;padding-block:18px;border-bottom:1px solid var(--line);color:var(--mute);margin:0}
.hg-timeline strong{font-family:var(--serif);font-weight:500;font-size:24px;line-height:1.2;color:var(--paper);font-variant-numeric:tabular-nums}
.hg-timeline li:last-child strong{color:var(--red)}
.hg-facts{border-top:1px solid var(--line);align-self:start}
.hg-fact{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding-block:22px;border-bottom:1px solid var(--line)}
.hg-fact-label{font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:var(--mute)}
.hg-fact-num{font-family:var(--serif);font-size:40px;line-height:1;font-variant-numeric:tabular-nums}
@media (max-width:520px){.hg-timeline li{grid-template-columns:1fr;gap:4px}}
@media (max-width:860px){.hg-story{grid-template-columns:1fr}}

/* Activités */
.hg-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.hg-act{background:var(--ink);padding:clamp(28px,4vw,48px);display:flex;flex-direction:column;gap:18px;min-height:340px}
.hg-act p{color:var(--mute)}
body .hg-act > .hg-kind, .hg-kind{color:var(--red);font-size:12px;letter-spacing:.3em;text-transform:uppercase;font-weight:400}
.hg-logo{height:40px;display:flex;align-items:center}
.hg-logo img{height:34px!important;width:auto!important;max-width:100%}
.hg-logo-tall img{height:40px!important}
body .hg-act > .hg-word{font-family:var(--serif);font-weight:600;font-size:30px;letter-spacing:.14em;color:var(--paper);line-height:40px}
.hg-tags{list-style:none;margin-top:auto!important;padding:18px 0 0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px}
.hg-tags li{font-size:12px;letter-spacing:.14em;text-transform:uppercase;border:1px solid var(--line);padding:6px 12px;border-radius:2px;color:var(--paper);margin:0}
.hg-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hg-duo .wp-block-image img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;border-radius:2px;background:var(--ink-3)}
@media (max-width:760px){.hg-acts{grid-template-columns:1fr}.hg-act{min-height:0}}

/* Adresses */
.hg-places{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:28px}
.hg-place{display:flex;flex-direction:column;gap:6px}
body .hg-place > .wp-block-image{margin-bottom:12px}
.hg-place .wp-block-image img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:2px;background:var(--ink-3)}
body .hg-place > .hg-kind{border-top:1px solid var(--line);padding-top:16px}
.hg-place-title{font-size:30px;line-height:1.1}
.hg-place-text{color:var(--mute)}
.hg-levels{list-style:none;padding:0;margin-top:6px!important;border-top:1px solid var(--line)}
.hg-levels li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding-block:9px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.45;color:var(--mute);margin:0}
.hg-levels strong{font-weight:500;color:var(--red);font-size:12px;letter-spacing:.14em;padding-top:2px}

/* Intérieurs : mosaïque */
body .wp-block-gallery.hg-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(150px,17vw,230px);grid-auto-flow:dense;gap:12px}
body .wp-block-gallery.hg-mosaic > .wp-block-image{width:auto!important;margin:0!important;height:100%;position:relative;overflow:hidden;border-radius:2px;background:var(--ink-3)}
body .wp-block-gallery.hg-mosaic > .wp-block-image img{width:100%!important;height:100%!important;object-fit:cover;transition:transform .6s ease}
body .wp-block-gallery.hg-mosaic > .wp-block-image:hover img{transform:scale(1.04)}
body .wp-block-gallery.hg-mosaic > .wp-block-image.is-w2{grid-column:span 2}
body .wp-block-gallery.hg-mosaic > .wp-block-image.is-h2{grid-row:span 2}
body .wp-block-gallery.hg-mosaic > figure.wp-block-image figcaption{font-family:var(--sans);font-size:14px;text-align:left;padding:36px 16px 14px;background:linear-gradient(transparent,rgba(11,11,13,.88));color:var(--paper)}
@media (max-width:860px){body .wp-block-gallery.hg-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(150px,38vw,260px)}}
@media (prefers-reduced-motion: reduce){body .wp-block-gallery.hg-mosaic > .wp-block-image img{transition:none}}
.wp-lightbox-overlay .scrim{background-color:#060608!important}

/* Présence */
.hg-route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:relative}
.hg-route::before{content:"";position:absolute;left:0;right:0;top:9px;height:1px;background:var(--line)}
.hg-stop{position:relative;padding-right:32px;padding-top:47px}
.hg-stop::before{content:"";position:absolute;left:0;top:0;width:19px;height:19px;box-sizing:border-box;border-radius:50%;background:radial-gradient(circle,var(--red) 0 5.5px,var(--ink) 6px);border:2px solid var(--red)}
.hg-stop-title{font-size:40px;margin-bottom:6px!important}
.hg-city{font-size:13px;letter-spacing:.24em;text-transform:uppercase;color:var(--mute);margin-bottom:18px!important}
.hg-stop p:last-child{color:var(--mute);max-width:32ch}
@media (max-width:760px){
  .hg-route{grid-template-columns:1fr;gap:40px;padding-left:36px}
  .hg-route::before{left:9px;right:auto;top:0;bottom:0;width:1px;height:auto}
  .hg-stop{padding-top:0}
  .hg-stop::before{left:-36px;top:10px}
}

/* Contact */
.hg-contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:56px;align-items:start}
.hg-person{display:flex;flex-direction:column}
body .hg-person > .hg-label{margin-bottom:18px}
.hg-person-name{font-size:clamp(34px,4vw,48px)}
.hg-role{margin-top:10px!important;font-size:13px;letter-spacing:.24em;text-transform:uppercase;color:var(--mute)}
body .hg-person > .hg-rule{margin-top:24px;margin-inline:0}
body .hg-person > .hg-lead{margin-top:24px;max-width:40ch}
.hg-lines{border-top:1px solid var(--line)}
.hg-line{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;align-items:center;padding-block:22px;border-bottom:1px solid var(--line)}
.hg-line .hg-label{letter-spacing:.24em}
.hg-value{font-size:20px;overflow-wrap:anywhere}
.hg-value a{text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s}
.hg-value a:hover{border-color:var(--red)}
@media (max-width:860px){.hg-contact{grid-template-columns:1fr}}
@media (max-width:520px){.hg-line{grid-template-columns:1fr;gap:4px}}

/* Pied de page */
.hg-footer{padding:40px var(--gutter) 56px}
.hg-foot{max-width:var(--wrap);margin-inline:auto;display:flex;flex-wrap:wrap;gap:20px 40px;justify-content:space-between;align-items:center;color:var(--dim);font-size:13px}
.hg-foot-logos{display:flex;flex-wrap:wrap;gap:28px;align-items:center}
.hg-foot-logos img{height:26px!important;width:auto!important;opacity:.9}

/* Pages simples (mentions légales, etc.) */
.hg-page{min-height:50vh}
.hg-page-title{font-size:clamp(40px,5.5vw,64px);margin-bottom:40px!important}
body .hg-page .wp-block-post-content > *{max-width:72ch}
body .hg-page .wp-block-post-content > * + *{margin-top:1.1em}
.hg-page .wp-block-post-content h2{font-size:30px;margin-top:1.8em!important}
.hg-page .wp-block-post-content a{color:var(--paper);text-decoration-color:var(--red)}
