/* ------------------------------------------------------------------
   brand-hub.css — pages hub de marque (mypv, apsystems, wallbox, alfen)
   Structure reprise des hubs sines-export, recolorée à la charte
   EnerMoov : #233545 (bleu ardoise), #c30000 (rouge), #5f6f7d (gris
   de texte), Inter / Space Grotesk, rayons courts.
   Chargée APRÈS css/style.css.
-------------------------------------------------------------------*/

.brand-hub{
  --bh-ink:#233545;
  --bh-ink-soft:#5f6f7d;
  --bh-accent:#c30000;
  --bh-accent-light:#ff8d8d;
  --bh-border:#dfe4e9;
  --bh-soft:#f1f4f7;
  --bh-surface:#fff;
  color:var(--bh-ink-soft);
  font-size:15px;
  line-height:1.65;
}
.brand-hub *{box-sizing:border-box;}
.brand-hub a{text-decoration:none;}

/* --- boutons et titres de section --- */
.bh-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;}
.bh-button{
  display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;
  padding:10px 20px;border:1px solid transparent;border-radius:6px;
  font-family:'Space Grotesk',Arial,sans-serif;font-size:14px;font-weight:600;
  letter-spacing:.01em;text-align:center;text-decoration:none!important;
  transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
.bh-button:hover,.bh-button:focus-visible{transform:translateY(-2px);}
.bh-button--light{background:#fff;color:#233545!important;}
.bh-button--light:hover,.bh-button--light:focus-visible{background:#c30000;color:#fff!important;}
.bh-button--outline{border-color:rgba(255,255,255,.45);background:transparent;color:#fff!important;}
.bh-button--outline:hover,.bh-button--outline:focus-visible{border-color:#fff;background:rgba(255,255,255,.12);}
.bh-button--solid{background:#233545;color:#fff!important;}
.bh-button--solid:hover,.bh-button--solid:focus-visible{background:#c30000;}

.bh-heading{max-width:760px;margin-bottom:25px;}
.bh-heading>span{
  display:block;margin-bottom:7px;color:var(--bh-accent);
  font-size:11px;font-weight:700;letter-spacing:.12em;line-height:1.3;text-transform:uppercase;
}
.bh-heading h2{
  margin:0;color:#233545;font-family:'Space Grotesk',Arial,sans-serif;
  font-size:32px;font-weight:600;line-height:1.14;letter-spacing:-.02em;
}
.bh-heading p{margin:10px 0 0;color:var(--bh-ink-soft);}

/* --- 1. hero --- */
.bh-hero{
  display:grid;grid-template-columns:minmax(0,1.16fr) minmax(330px,.84fr);
  min-height:500px;margin:0 0 42px;overflow:hidden;border-radius:12px;
  background:
    radial-gradient(circle at 94% 4%,rgba(195,0,0,.34),transparent 34%),
    linear-gradient(135deg,#1a2a37,#233545 58%,#33495c);
  color:#fff;box-shadow:0 18px 44px rgba(35,53,69,.22);
}
.bh-hero__copy{
  display:flex;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;
  padding:52px 24px 52px 52px;
}
.bh-hero__copy>span{
  margin-bottom:14px;color:#ff9f9f;
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
}
.bh-hero h1{
  max-width:720px;margin:0;color:#fff;font-family:'Space Grotesk',Arial,sans-serif;
  font-size:44px;font-weight:600;line-height:1.08;letter-spacing:-.03em;
}
.bh-hero__copy>p{max-width:700px;margin:20px 0 0;color:#d6dee5;font-size:17px;line-height:1.56;}
.bh-hero__copy>ul{
  display:flex;flex-wrap:wrap;gap:9px 22px;margin:24px 0 0;padding:0;
  list-style:none;color:#d6dee5;font-size:13px;
}
.bh-hero__copy>ul i{margin-right:6px;color:#ff8d8d;}
.bh-hero__visual{position:relative;display:flex;align-items:center;justify-content:center;padding:36px 36px 36px 0;}
.bh-hero__visual:before{
  position:absolute;width:320px;height:320px;
  border:52px solid rgba(255,255,255,.06);border-radius:50%;content:"";
}
.bh-hero__visual span{
  position:relative;display:flex;width:100%;max-width:390px;min-height:380px;
  align-items:center;justify-content:center;overflow:hidden;padding:20px;
  border-radius:10px;background:#fff;box-shadow:0 22px 48px rgba(12,24,34,.32);
}
.bh-hero__visual img{display:block;width:100%;height:340px;max-width:100%;object-fit:contain;}

/* --- 2. écosystème (4 tuiles) --- */
.bh-section{margin-bottom:46px;}
.bh-ecosystem__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
.bh-ecosystem__grid>a{
  display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;
  min-height:94px;padding:17px;border:1px solid var(--bh-border);border-radius:8px;
  background:#fff;color:#233545!important;font-weight:600;line-height:1.35;
  box-shadow:0 6px 18px rgba(35,53,69,.05);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.bh-ecosystem__grid>a>i:first-child{
  display:grid;width:42px;height:42px;place-items:center;
  border-radius:8px;background:var(--bh-soft);color:var(--bh-accent);font-size:18px;
}
.bh-ecosystem__grid>a>span strong,.bh-ecosystem__grid>a>span small{display:block;}
.bh-ecosystem__grid>a>span strong{font-family:'Space Grotesk',Arial,sans-serif;font-size:15px;}
.bh-ecosystem__grid>a>span small{margin-top:3px;color:var(--bh-ink-soft);font-size:11.5px;font-weight:400;line-height:1.35;}
.bh-ecosystem__grid>a>i:last-child{color:#9cb0bc;transition:transform .2s ease;}
.bh-ecosystem__grid>a:hover,.bh-ecosystem__grid>a:focus-visible{
  border-color:#233545;box-shadow:0 12px 26px rgba(35,53,69,.11);transform:translateY(-2px);
}
.bh-ecosystem__grid>a:hover>i:last-child{transform:translateX(3px);}

/* --- 3. familles de produits --- */
.bh-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.bh-family-card{
  display:flex;min-width:0;flex-direction:column;overflow:hidden;
  border:1px solid var(--bh-border);border-radius:10px;background:#fff;
  box-shadow:0 8px 24px rgba(35,53,69,.06);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.bh-family-card:hover{border-color:#c3ccd3;transform:translateY(-4px);box-shadow:0 16px 34px rgba(35,53,69,.12);}
.bh-family-card__image{
  display:flex;height:230px;align-items:center;justify-content:center;overflow:hidden;background:#fff;
}
.bh-family-card__image img{
  display:block;width:100%;height:100%;padding:18px;object-fit:contain;transition:transform .25s ease;
}
.bh-family-card:hover .bh-family-card__image img{transform:scale(1.03);}
.bh-family-card__copy{display:flex;flex:1;flex-direction:column;padding:22px;border-top:1px solid #eceff2;background:#fafbfc;}
.bh-family-card__copy>span{color:var(--bh-accent);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;}
.bh-family-card h3{margin:5px 0 10px;font-family:'Space Grotesk',Arial,sans-serif;font-size:21px;font-weight:600;line-height:1.2;}
.bh-family-card h3 a{color:#233545;}
.bh-family-card h3 a:hover{color:#c30000;}
.bh-family-card p{margin:0;color:var(--bh-ink-soft);font-size:14px;line-height:1.55;}
.bh-family-card__models{display:flex;flex-wrap:wrap;gap:6px;margin:17px 0 19px;}
.bh-family-card__models>strong{width:100%;color:#7c8a96;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;}
.bh-family-card__models>a{
  padding:5px 9px;border:1px solid var(--bh-border);border-radius:6px;background:#fff;
  color:#233545!important;font-size:11px;font-weight:600;line-height:1.25;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.bh-family-card__models>a:hover,.bh-family-card__models>a:focus-visible{border-color:#c30000;background:#fff;color:#c30000!important;}
.bh-card-link{align-self:flex-start;margin-top:auto;color:#c30000!important;font-size:13px;font-weight:700;}
.bh-card-link i{margin-left:5px;transition:transform .2s ease;}
.bh-family-card:hover .bh-card-link i{transform:translateX(4px);}
.bh-family-note{margin:16px 0 0;color:#7c8a96;font-size:12.5px;}

/* --- 4. bande ressource officielle --- */
.bh-doc{
  display:grid;grid-template-columns:minmax(240px,.6fr) minmax(0,1.4fr);align-items:center;gap:40px;
  margin:0 0 46px;padding:36px;border-radius:12px;
  background:radial-gradient(circle at 100% 0,rgba(195,0,0,.3),transparent 38%),#233545;
  color:#d6dee5;box-shadow:0 16px 38px rgba(35,53,69,.18);
}
.bh-doc__cover{display:block;overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 16px 34px rgba(12,24,34,.28);}
.bh-doc__cover img{display:block;width:100%;height:auto;aspect-ratio:6/5;object-fit:contain;background:#fff;}
.bh-doc>div>span{color:#ff9f9f;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;}
.bh-doc h2{
  margin:7px 0 13px;color:#fff;font-family:'Space Grotesk',Arial,sans-serif;
  font-size:30px;font-weight:600;line-height:1.14;letter-spacing:-.02em;
}
.bh-doc p{max-width:620px;margin:0;color:#d6dee5;}
.bh-doc .bh-button{margin-top:21px;}

/* --- 5. FAQ --- */
.bh-faq{max-width:900px;margin-right:auto;margin-left:auto;}
.bh-faq details{margin-bottom:10px;border:1px solid var(--bh-border);border-radius:8px;background:#fff;}
.bh-faq summary{
  position:relative;padding:17px 48px 17px 19px;color:#233545;
  font-family:'Space Grotesk',Arial,sans-serif;font-weight:600;cursor:pointer;list-style:none;
}
.bh-faq summary::-webkit-details-marker{display:none;}
.bh-faq summary:after{position:absolute;top:15px;right:19px;color:var(--bh-accent);content:"+";font-size:22px;line-height:1;}
.bh-faq details[open] summary:after{content:"\2212";}
.bh-faq details p{margin:0;padding:0 19px 18px;color:var(--bh-ink-soft);}

/* --- 6. bande accompagnement --- */
.bh-support-section{margin-bottom:30px;padding:36px 0;background:#f6f8fa;}
.bh-support{
  display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);
  overflow:hidden;border-radius:12px;
  background:radial-gradient(circle at 100% 0,rgba(195,0,0,.28),transparent 40%),linear-gradient(125deg,#1a2a37,#33495c);
  color:#fff;box-shadow:0 14px 32px rgba(35,53,69,.18);
}
.bh-support__copy{padding:30px 34px;}
.bh-support__copy>span{
  display:block;margin-bottom:10px;color:#ff9f9f;
  font-size:10.5px;font-weight:700;letter-spacing:.13em;line-height:1.3;text-transform:uppercase;
}
.bh-support__copy h2{
  margin:0;color:#fff;font-family:'Space Grotesk',Arial,sans-serif;
  font-size:26px;font-weight:600;line-height:1.16;letter-spacing:-.02em;
}
.bh-support__copy>p{max-width:680px;margin:10px 0 0;color:#d6dee5;font-size:13.5px;line-height:1.58;}
.bh-support__tags{display:flex;flex-wrap:wrap;margin-top:18px;gap:8px;}
.bh-support__tags span{
  padding:7px 11px;border:1px solid rgba(255,255,255,.16);border-radius:999px;
  background:rgba(255,255,255,.09);color:#fff;font-size:11px;
}
.bh-support__tags i{margin-right:5px;color:#ff8d8d;}
.bh-support__steps{
  display:flex;flex-direction:column;justify-content:center;padding:24px 27px;
  border-left:1px solid rgba(255,255,255,.14);background:rgba(12,24,34,.3);color:#fff;
}
.bh-support__steps>strong{display:block;color:#fff;font-family:'Space Grotesk',Arial,sans-serif;font-size:15px;font-weight:600;line-height:1.3;}
.bh-support__steps ol{margin:14px 0 0;padding:0;list-style:none;}
.bh-support__steps li{
  display:grid;grid-template-columns:28px 1fr;align-items:center;gap:8px;
  padding:7px 0;border-top:1px solid rgba(255,255,255,.11);
}
.bh-support__steps li span{color:#ff8d8d;font-size:9.5px;font-weight:700;letter-spacing:.08em;}
.bh-support__steps li small{color:#d6dee5;font-size:11px;line-height:1.35;}
.bh-support__steps .bh-button{margin-top:16px;align-self:flex-start;}

/* --- responsive --- */
@media (max-width:1199px){
  .bh-family-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .bh-ecosystem__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .bh-hero h1{font-size:38px;}
  .bh-hero__copy{padding-left:38px;}
}
@media (max-width:991px){
  .bh-hero{grid-template-columns:1fr;}
  .bh-hero__copy{padding:42px 34px 22px;}
  .bh-hero__visual{padding:8px 30px 35px;}
  .bh-hero__visual span{width:min(100%,420px);min-height:320px;}
  .bh-doc{grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:26px;}
  .bh-support{grid-template-columns:1fr;}
  .bh-support__steps{border-top:1px solid rgba(255,255,255,.14);border-left:0;}
}
@media (max-width:767px){
  .brand-hub{font-size:14px;}
  .bh-hero{min-height:0;margin-bottom:28px;}
  .bh-hero__copy{padding:30px 21px 18px;}
  .bh-hero h1{font-size:31px;}
  .bh-hero__copy>p{font-size:15.5px;}
  .bh-hero__copy .bh-actions,.bh-hero__copy .bh-button{width:100%;}
  .bh-hero__copy>ul{display:block;}
  .bh-hero__copy>ul li+li{margin-top:7px;}
  .bh-hero__visual{padding:5px 20px 24px;}
  .bh-hero__visual span{min-height:260px;padding:15px;}
  .bh-hero__visual img{height:240px;}
  .bh-section{margin-bottom:30px;}
  .bh-heading h2{font-size:25px;}
  .bh-ecosystem__grid{grid-template-columns:1fr;gap:10px;}
  .bh-ecosystem__grid>a{min-height:78px;padding:14px;}
  .bh-family-grid{grid-template-columns:1fr;gap:14px;}
  .bh-family-card:hover{transform:none;}
  .bh-family-card__image{height:210px;}
  .bh-family-card__copy{padding:19px;}
  .bh-doc{grid-template-columns:1fr;gap:22px;margin-bottom:31px;padding:22px;}
  .bh-doc h2{font-size:24px;}
  .bh-doc__cover{max-width:320px;margin:auto;}
  .bh-support-section{margin-bottom:22px;padding:28px 0;}
  .bh-support__copy h2{font-size:22px;}
  .bh-support__copy,.bh-support__steps{padding:23px 20px;}
  .bh-support__tags{display:grid;grid-template-columns:1fr;}
}
@media (max-width:420px){
  .bh-family-card__image{height:186px;}
  .bh-ecosystem__grid>a{grid-template-columns:38px 1fr auto;gap:10px;}
  .bh-ecosystem__grid>a>i:first-child{width:38px;height:38px;}
}
