/* =========================================================================
   GARANTEA ÉNERGIE — PAGE D'ACCUEIL (blocs 1 à 7)
   Source unique : les 7 maquettes PNG fournies par Idan le 23/08/2026.
   -------------------------------------------------------------------------
   Fichier chargé PAR index.html UNIQUEMENT, en complément de css/styles.css.
   Toutes les classes sont préfixées « hp- » : aucun risque de régression sur
   les 130+ autres pages du site. Les boutons (.btn/.btn-primary/.btn-ghost)
   sont réutilisés depuis styles.css — pas de duplication.
   -------------------------------------------------------------------------
   Écart assumé vs charte 06/08 (à valider Jeremy/Idan) :
   - bleu des maquettes (--hp-blue) plus soutenu que le bleu charte #1565C0 ;
   - cartes + ombres douces, présentes dans toutes les maquettes du client.
   Revenir en arrière = changer --hp-blue ci-dessous.
   ========================================================================= */

.hp{
  --hp-blue:#1550E0;          /* bleu des maquettes (titres accentués, liens, pictos) */
  --hp-blue-deep:#2B54B1;     /* fond du panneau « Aides & financement » (bloc 4)     */
  --hp-blue-ink:#123FA8;      /* survol                                              */
  --hp-wash:#EBF0FE;          /* pastilles et pills                                  */
  --hp-orange:#F26A1B;
  --hp-ink:#0E1B2E;
  --hp-ink-2:#4A5567;
  --hp-meta:#727E90;
  --hp-panel:#F2F5FD;         /* panneau bloc 2                                      */
  --hp-panel-2:#F5F7FC;       /* panneaux blocs 5, 6, 7                              */
  --hp-page:#F7F8FC;          /* fond de section                                     */
  --hp-line:#E4E9F3;
  --hp-r-card:16px;
  --hp-r-panel:28px;
  --hp-r-img:12px;
  --hp-shadow:0 1px 2px rgba(14,27,46,.04), 0 10px 28px rgba(14,27,46,.06);
  --hp-shadow-sm:0 1px 2px rgba(14,27,46,.04), 0 6px 18px rgba(14,27,46,.05);
  --hp-hero-ratio:910/830;   /* hauteur de la photo du héros — 910/705 = ratio natif */
  --hp-news-bg:#F95F01;      /* bandeau newsletter v4 */
  --hp-news-btn:#0730D7;     /* bouton newsletter v4 */
  color:var(--hp-ink);
}

/* ---------- Primitives partagées par les 7 blocs ---------- */
.hp-wrap{max-width:1300px;margin:0 auto;padding:0 24px}
.hp-sec{padding:clamp(34px,4vw,54px) 0;background:#fff}
.hp-sec.is-white{background:#fff}
.hp-panel{background:var(--hp-panel-2);border-radius:var(--hp-r-panel);padding:clamp(30px,4.4vw,64px)}
/* v4 : blocs 5 et 7 posés à plat sur blanc, sans panneau teinté */
.hp-panel--flat{background:transparent;border-radius:0;padding:0}
.hp-center{text-align:center}
.hp figure,.hp blockquote{margin:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.hp-tag{display:inline-block;background:var(--hp-wash);color:var(--hp-blue);
  font-size:.76rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  padding:9px 18px;border-radius:999px;line-height:1.1;margin:0 0 18px}

.hp h1,.hp h2,.hp h3{color:var(--hp-ink);letter-spacing:-.015em}
.hp h1{font-size:clamp(2.2rem,3.9vw,3rem);line-height:1.13;margin:0 0 20px}
.hp h2{font-size:clamp(1.6rem,2.7vw,2.3rem);line-height:1.2;margin:0 0 18px}
.hp .hp-accent{color:var(--hp-blue)}
.hp .hp-accent-o{color:var(--hp-orange)}
.hp-lead{font-size:1.02rem;line-height:1.72;color:var(--hp-ink-2);margin:0}
.hp-head{max-width:none}
.hp-head.hp-center .hp-lead{margin-left:auto;margin-right:auto;max-width:62ch}

.hp-ic{width:22px;height:22px;flex:none;color:var(--hp-blue);vertical-align:middle}
.hp-arw{width:18px;height:18px;flex:none;transition:transform .16s}
.hp-link{display:inline-flex;align-items:center;gap:8px;color:var(--hp-blue);
  font-weight:700;font-size:.94rem;line-height:1.2}
.hp-link:hover{color:var(--hp-blue-ink)}
.hp-link:hover .hp-arw{transform:translateX(3px)}
.hp .btn{border-radius:10px}
.hp .btn-primary{background:var(--hp-orange)}
.hp .btn-ghost{color:var(--hp-blue);border-color:var(--hp-blue)}
.hp .btn-ghost:hover{background:var(--hp-wash)}
.hp .btn:hover .hp-arw{transform:translateX(3px)}
.hp-cta-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:30px 0 0}

/* Pastille ronde à picto (réassurances, lignes d'aides, étapes…) */
.hp-chip{flex:none;display:grid;place-items:center;width:44px;height:44px;
  border-radius:50%;background:var(--hp-wash)}
.hp-chip .hp-ic{width:21px;height:21px}

/* =========================================================================
   BLOC 1 — HERO
   ========================================================================= */
.hp-hero{background:#fff;padding:clamp(28px,3.4vw,48px) 0 clamp(34px,4vw,54px)}
.hp-hero-grid{display:grid;grid-template-columns:35fr 62fr;
  gap:clamp(26px,3.2vw,46px);align-items:center}
.hp-hero-txt h1{margin-bottom:22px}
.hp-hero-txt .hp-lead{max-width:52ch}
.hp-hero-txt .hp-cta-row .btn{padding:12px 15px;font-size:.88rem}

.hp-reassure{list-style:none;margin:32px 0 0;padding:0;
  display:grid;grid-template-columns:1fr 1fr;gap:22px 18px}
.hp-reassure li{display:flex;gap:13px;align-items:flex-start}
.hp-reassure .hp-chip{width:40px;height:40px}
.hp-reassure .hp-chip .hp-ic{width:19px;height:19px}
.hp-reassure strong{display:block;font-size:.9rem;font-weight:700;color:var(--hp-ink);margin-bottom:6px}
.hp-reassure p{margin:0;font-size:.875rem;line-height:1.6;color:var(--hp-ink-2)}

.hp-hero-visual{position:relative}
.hp-hero-visual>img{width:100%;height:auto;border-radius:20px;
  aspect-ratio:var(--hp-hero-ratio);object-fit:cover;object-position:center;
  box-shadow:0 18px 46px rgba(14,27,46,.12)}
.hp-hero-badges{list-style:none;margin:0;padding:14px 10px;
  position:absolute;left:12px;right:12px;bottom:12px;
  background:#fff;border-radius:14px;box-shadow:0 6px 22px rgba(14,27,46,.12);
  display:flex;align-items:center;gap:0}
.hp-hero-badges li{flex:1 1 0;display:flex;align-items:center;gap:11px;
  padding:2px 12px;font-size:.78rem;font-weight:600;line-height:1.38;color:var(--hp-ink)}
.hp-hero-badges li+li{border-left:1px solid var(--hp-line)}
.hp-hero-badges li .hp-ic{width:27px;height:27px}
.hp-hero-badges .hp-hero-mark{flex:0 0 auto;padding-left:6px}
.hp-hero-badges .hp-hero-mark img{width:auto;height:46px}

/* =========================================================================
   BLOC 2 — LE PARCOURS GARANTEA ÉNERGIE
   ========================================================================= */
.hp-parcours{background:var(--hp-panel)}
.hp-parcours .hp-head{margin-bottom:8px}
.hp-steps{list-style:none;margin:44px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(3,1fr);gap:32px;text-align:center}
.hp-steps li{position:relative;padding:0 6px}
.hp-step-ic{display:grid;place-items:center;width:104px;height:104px;border-radius:50%;
  background:#E6EDFC;margin:0 auto 26px}
.hp-step-ic .hp-ic{width:47px;height:47px}
.hp-steps h3{font-size:1.06rem;font-weight:700;margin:0 0 12px}
.hp-steps p{margin:0;font-size:.94rem;line-height:1.66;color:var(--hp-ink-2)}
/* trait de liaison + point central entre deux étapes */
.hp-steps li+li::before,.hp-steps li+li::after{content:"";position:absolute;
  left:calc(-50% + 58px);right:calc(50% + 58px)}
.hp-steps li+li::before{top:52px;height:1px;background:#CBD6EC}
.hp-steps li+li::after{top:48px;width:9px;height:9px;margin:0 auto;
  border-radius:50%;background:var(--hp-blue)}
.hp-parcours .hp-cta-row{justify-content:center;margin-top:46px}
.hp-mini{list-style:none;margin:26px 0 0;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0}
.hp-mini li{display:flex;align-items:center;gap:10px;padding:2px 26px;
  font-size:.93rem;font-weight:600;color:var(--hp-ink)}
.hp-mini li+li{border-left:1px solid #CBD6EC}
.hp-mini .hp-ic{width:20px;height:20px}

/* =========================================================================
   BLOC 3 — NOS SOLUTIONS
   ========================================================================= */
.hp-solutions{display:grid;grid-template-columns:repeat(3,1fr);
  gap:26px;margin-top:38px}
.hp-card{display:flex;flex-direction:column;background:transparent;
  border-radius:0;box-shadow:none}
.hp-card>img{width:100%;height:auto;aspect-ratio:343/135;object-fit:cover;border-radius:11px}
.hp-card-body{display:flex;flex-direction:column;flex:1;padding:20px 2px 0}
.hp-card-body h3{font-size:1.08rem;font-weight:700;margin:0 0 10px}
.hp-card-body p{margin:0;font-size:.94rem;line-height:1.66;color:var(--hp-ink-2)}
.hp-card-body .hp-link{margin-top:auto;padding-top:18px;align-self:flex-start}
.hp-solutions+.hp-cta-row{justify-content:center;margin-top:40px}

/* =========================================================================
   BLOC 4 — AIDES & FINANCEMENT
   ========================================================================= */
.hp-aides{background:var(--hp-blue-deep);border-radius:24px;color:#fff;
  padding:clamp(34px,4.4vw,64px) clamp(26px,3.8vw,58px);
  display:grid;grid-template-columns:47fr 50fr;gap:clamp(32px,4.4vw,64px);
  align-items:center}
.hp-aides h2,.hp-aides h3{color:#fff}
.hp-aides h2{font-size:clamp(1.5rem,2.15vw,2rem);line-height:1.3}
.hp-aides .hp-tag{background:rgba(255,255,255,.16);color:#fff}
.hp-aides p{color:rgba(255,255,255,.86);font-size:.99rem;line-height:1.72;margin:0 0 18px}
.hp-aides .btn-primary{margin-top:8px}
.hp-aides .hp-mention{font-size:.82rem;line-height:1.6;color:rgba(255,255,255,.6);margin:22px 0 0}
.hp-aides-list{list-style:none;margin:0;padding:0}
.hp-aides-list li{display:flex;gap:22px;align-items:flex-start;padding:22px 0}
.hp-aides-list li+li{border-top:1px solid rgba(255,255,255,.18)}
.hp-aides-list li:first-child{padding-top:0}
.hp-aides-list li:last-child{padding-bottom:0}
.hp-aides-list .hp-chip{width:52px;height:52px;background:rgba(255,255,255,.14)}
.hp-aides-list .hp-chip .hp-ic{width:24px;height:24px;color:#fff}
.hp-aides-list strong{display:block;font-size:1rem;font-weight:700;color:#fff;margin-bottom:8px}
.hp-aides-list p{margin:0;font-size:.92rem;line-height:1.62;color:rgba(255,255,255,.82)}

/* =========================================================================
   BLOC 5 — NOS PUBLICS
   ========================================================================= */
.hp-publics{display:grid;grid-template-columns:38fr 59fr;
  gap:clamp(30px,4vw,58px);align-items:center}
.hp-publics-txt h2{font-size:clamp(1.5rem,2.4vw,2.05rem)}
.hp-publics-txt p+p{margin-top:18px}
.hp-publics-cards{display:grid;gap:24px}
.hp-public{display:grid;grid-template-columns:40% 1fr;gap:22px;align-items:center;
  background:#fff;border-radius:var(--hp-r-card);padding:22px;box-shadow:var(--hp-shadow)}
.hp-public img{width:100%;height:100%;min-height:150px;object-fit:cover;border-radius:var(--hp-r-img)}
.hp-public h3{font-size:1.18rem;font-weight:700;margin:0 0 10px}
.hp-public p{margin:0 0 18px;font-size:.94rem;line-height:1.66;color:var(--hp-ink-2)}

/* =========================================================================
   BLOC 6 — TÉMOIGNAGES & AVANTAGES
   ========================================================================= */
.hp-avis-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:clamp(26px,3vw,42px)}
.hp-avis-right{border-left:1px solid var(--hp-line);padding-left:clamp(22px,2.6vw,38px)}

.hp-avis-viewport{overflow:hidden;margin-top:30px}
.hp-avis-track{display:flex;gap:22px;scroll-snap-type:x mandatory;overflow-x:auto;
  scroll-behavior:smooth;scrollbar-width:none;padding-bottom:4px}
.hp-avis-track::-webkit-scrollbar{display:none}
.hp-avis{flex:0 0 calc(50% - 11px);min-width:0;scroll-snap-align:start;
  display:flex;flex-direction:column;background:#fff;border-radius:var(--hp-r-card);
  padding:24px;box-shadow:var(--hp-shadow-sm)}
.hp-avis .hp-quote{width:30px;height:30px;color:var(--hp-blue);margin-bottom:14px}
.hp-avis-stars{display:flex;gap:3px;margin-bottom:16px}
.hp-avis-stars svg{width:17px;height:17px;color:var(--hp-orange)}
.hp-avis blockquote{margin:0 0 22px;font-size:.94rem;line-height:1.68;color:var(--hp-ink-2)}
.hp-avis figcaption{display:flex;gap:14px;align-items:center;
  border-top:1px solid var(--hp-line);padding-top:18px;margin-top:auto}
.hp-avis figcaption img{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:none}
.hp-avis figcaption b{display:block;font-size:.95rem;font-weight:700;color:var(--hp-ink);margin-bottom:4px}
.hp-avis figcaption span{display:block;font-size:.9rem;line-height:1.5;color:var(--hp-meta)}
.hp-avis-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:26px}
.hp-avis-nav button{width:42px;height:42px;border-radius:50%;background:transparent;
  border:1.5px solid #C7D3EA;color:var(--hp-blue);display:grid;place-items:center;cursor:pointer;transition:.15s}
.hp-avis-nav button:hover:not(:disabled){background:var(--hp-wash);border-color:var(--hp-blue)}
.hp-avis-nav button:disabled{opacity:.4;cursor:default}
.hp-avis-nav svg{width:18px;height:18px}
.hp-avis-dots{display:flex;gap:9px}
.hp-avis-dots b{width:9px;height:9px;border-radius:50%;background:#C7D3EA;cursor:pointer}
.hp-avis-dots b.is-on{background:var(--hp-blue)}
.hp-avis-right>h3{font-size:1.16rem;font-weight:700;margin:0 0 24px}
.hp-atouts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:15px}
.hp-atouts li{background:#fff;border-radius:var(--hp-r-card);padding:20px 17px;box-shadow:var(--hp-shadow-sm)}
.hp-atout-ic{display:grid;place-items:center;width:56px;height:56px;border-radius:15px;
  background:#EEF2FD;margin-bottom:16px}
.hp-atout-ic .hp-ic{width:28px;height:28px}
.hp-atouts h4{margin:0 0 10px;font-size:.98rem;font-weight:700;color:var(--hp-blue);line-height:1.3}
.hp-atouts p{margin:0;font-size:.885rem;line-height:1.62;color:var(--hp-ink-2)}

/* =========================================================================
   BLOC 7 — ACTUS & CONSEILS + NEWSLETTER
   ========================================================================= */
.hp-actus{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:38px}
.hp-actu{display:flex;flex-direction:column;background:transparent;border-radius:0;
  padding:0;box-shadow:none}
.hp-actu>img{width:100%;height:auto;aspect-ratio:366/149;object-fit:cover;
  border-radius:11px;margin-bottom:20px}
.hp-actu-meta{display:flex;align-items:center;gap:10px;font-size:.85rem;
  color:var(--hp-meta);margin:0 0 12px}
.hp-actu-meta i{width:4px;height:4px;border-radius:50%;background:#B9C2D2}
.hp-actu h3{margin:0 0 12px;font-size:1.06rem;font-weight:700;line-height:1.36}
.hp-actu p{margin:0;font-size:.93rem;line-height:1.66;color:var(--hp-ink-2)}
.hp-actu .hp-link{margin:auto 0 0;padding-top:22px;align-self:flex-start}

.hp-news{margin-top:44px;background:var(--hp-news-bg);border-radius:16px;
  padding:clamp(26px,3.2vw,40px);
  display:grid;grid-template-columns:104px minmax(0,1fr) minmax(0,1.32fr);
  gap:clamp(20px,2.3vw,32px);align-items:center}
.hp-news-ring{width:104px;height:104px;border-radius:50%;background:#fff;display:grid;place-items:center}
.hp-news-ring .hp-ic{width:48px;height:48px;color:var(--hp-news-bg)}
.hp-news .hp-tag{background:#fff;color:var(--hp-news-bg);margin-bottom:14px}
.hp-news h3{font-size:clamp(1.15rem,1.8vw,1.5rem);font-weight:700;margin:0 0 14px;color:#fff}
.hp-news p{margin:0;font-size:.94rem;line-height:1.7;color:rgba(255,255,255,.94)}
.hp-news-side{border-left:1px solid rgba(255,255,255,.45);padding-left:clamp(18px,1.9vw,26px)}
.hp-news-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.hp-news-form .btn{padding:14px 18px;font-size:.92rem;justify-content:center;
  background:var(--hp-news-btn);color:#fff}
.hp-news-form .btn:hover{background:#0526B4}
.hp-news-form input{min-width:0;width:100%;font-family:inherit;font-size:.95rem;
  color:var(--hp-ink);background:#fff;border:1px solid #DCE3F0;border-radius:10px;padding:14px 18px}
.hp-news-form input::placeholder{color:#98A2B3}
.hp-news-form input:focus{outline:2px solid var(--hp-blue);outline-offset:1px;border-color:transparent}
.hp-news-form .btn{white-space:nowrap}
.hp-news-legal{display:flex;align-items:center;gap:10px;margin:16px 0 0;
  font-size:.85rem;color:rgba(255,255,255,.92)}
.hp-news-legal .hp-ic{width:18px;height:18px;color:rgba(255,255,255,.92)}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media(max-width:1080px){
  .hp-hero-badges{padding:14px 12px}
  .hp-hero-badges li{font-size:.78rem;gap:10px;padding:2px 10px}
  .hp-hero-badges li .hp-ic{width:28px;height:28px}
  .hp-hero-badges .hp-hero-mark img{height:44px}
}
@media(max-width:960px){
  .hp-hero-grid,.hp-publics{grid-template-columns:1fr}
  .hp-aides{grid-template-columns:1fr}
  .hp-avis-grid{grid-template-columns:1fr}
  .hp-avis-right{border-left:0;border-top:1px solid var(--hp-line);
    padding-left:0;padding-top:clamp(30px,4vw,48px)}
  .hp-solutions,.hp-actus{grid-template-columns:1fr 1fr}
  .hp-news{grid-template-columns:96px minmax(0,1fr)}
  .hp-news-ring{width:96px;height:96px}
  .hp-news-side{grid-column:1/-1;border-left:0;border-top:1px solid #D6DEEE;
    padding-left:0;padding-top:26px}
}
@media(max-width:760px){
  .hp-hero-visual>img{border-radius:16px;aspect-ratio:auto}
  .hp-hero-badges{position:static;margin-top:12px;padding:16px;
    display:grid;grid-template-columns:1fr 1fr;gap:14px;box-shadow:var(--hp-shadow-sm)}
  .hp-hero-badges li{padding:0;border-left:0!important}
  .hp-hero-badges .hp-hero-mark{grid-column:1/-1;justify-content:center;
    padding:0 0 12px;border-bottom:1px solid var(--hp-line)}
  .hp-reassure{grid-template-columns:1fr;gap:22px}
  .hp-steps{grid-template-columns:1fr;gap:34px}
  .hp-steps li+li::before,.hp-steps li+li::after{display:none}
  .hp-mini{gap:8px 0}
  .hp-mini li:first-child{padding-left:0}
  .hp-solutions,.hp-actus,.hp-atouts{grid-template-columns:1fr}
  .hp-public{grid-template-columns:1fr}
  .hp-public img{min-height:180px}
  .hp-avis{flex:0 0 100%}
  .hp-news-form{grid-template-columns:1fr}
  .hp-cta-row .btn{width:100%;justify-content:center}
}
