/* ==========================================================================
   Home authentifié Hertz — dashboard
   Charte : jaune Hertz #FFD10A, hero sombre, cards blanches arrondies.
   ========================================================================== */

.hertz-home {
    --hz-yellow: #FFD10A;
    --hz-yellow-d: #F0C000;
    --hz-dark: #0F1620;
    --hz-dark-2: #1B2532;
    --hz-ink: #1A1F27;
    --hz-muted: #6B7280;
    --hz-line: #E7EAF0;
    --hz-bg: #EFF1F5;
    --hz-radius: 16px;

    max-width: 1450px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    color: var(--hz-ink);
    font-family: inherit;
}

.hertz-home .hh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: filter .15s ease, background .15s ease;
}
.hertz-home .hh-btn--yellow { background: var(--hz-yellow); color: #1A1400; }
.hertz-home .hh-btn--yellow:hover { filter: brightness(.96); }
.hertz-home .hh-btn--ghost { background: transparent; border-color: var(--hz-line); color: var(--hz-ink); }
.hertz-home .hh-btn--outline { background: transparent; border-color: #1A1F27; color: #1A1F27; }
.hertz-home .hh-btn--outline:hover { background: rgba(26,31,39,.06); }
.hertz-home .hh-btn--light { background: #fff; color: var(--hz-ink); border-color: rgba(255,255,255,.25); }
.hertz-home .hh-btn--dark { background: #2A3543; color: #fff; }

/* -------------------------------------------------------------- HERO ----- */
/* Composition reprise du Figma (Header 1008:316) : un dégradé sombre, puis la photo
   (couple de vendeurs sur fond violet) posée par-dessus à 60 % d'opacité — c'est ce
   mélange qui donne le violet feutré de la maquette. La fin du dégradé est
   semi-transparente : le fond de page transparaît à droite, comme dans le Figma. */
.hertz-home .hh-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(98deg, #0B1434 28%, rgba(0, 0, 0, .5) 90%);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
}
/* Pas de z-index ici ni sur la grille : la photo précède la grille dans le DOM, donc
   les cartes passent naturellement devant. Un z-index sur la grille la ferait aussi
   passer devant le sous-menu du header (.dropdown-content, fixed, z-index 1). */
.hertz-home .hh-hero__photo {
    position: absolute;
    inset: 0;
    background: var(--hz-img-hero) no-repeat left top;
    background-size: cover;
    opacity: .6;
    pointer-events: none;
}
.hertz-home .hh-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    gap: 15px;
}
.hertz-home .hh-hero__intro { padding: 4px 0 0; }
.hertz-home .hh-hero__intro h1 {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
}
.hertz-home .hh-hero__intro h1 em { color: var(--hz-yellow); font-style: normal; }
.hertz-home .hh-hero__intro p { color: #fff; font-size: 14px; line-height: 18px; margin: 0 0 18px; }
.hertz-home .hh-hero__punch { font-style: italic; }

/* Cartes translucides (voile sombre très léger + liseré clair) posées sur le hero :
   le visuel se devine au travers. */
.hertz-home .hh-hero__card {
    position: relative;
    background: linear-gradient(118deg, rgba(0, 0, 0, .20) 10%, rgba(0, 11, 7, .04) 96%);
    border: 1px solid rgba(228, 230, 236, .30);
    border-radius: 16px;
    padding: 24px 20px 14px;
    display: flex;
    flex-direction: column;
}
/* La carte prospects tire vers le rouge */
.hertz-home .hh-hero__card--priority {
    background: linear-gradient(117deg, rgba(255, 1, 1, .20) 10%, rgba(0, 11, 7, .04) 96%);
    padding-top: 14px;
}
.hertz-home .hh-hero__title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; line-height: 24px; margin-bottom: 10px; }
.hertz-home .hh-hero__ico { flex: 0 0 auto; font-size: 24px; color: #fff; }
.hertz-home .hh-plus {
    position: absolute;
    top: 10px; right: 12px;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: #1A1F27;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.hertz-home .hh-plus { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.hertz-home .hh-plus:hover { background: #fff; transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }
.hertz-home .hh-plus i { font-size: 24px; }
.hertz-home .hh-hero__card p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.3; margin: 0 0 16px; flex: 1; }

.hertz-home .hh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hertz-home .hh-chip {
    background: var(--hz-yellow);
    color: #000;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .1px;
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.hertz-home .hh-chip:hover {
    background: #FFDE4D;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 209, 10, .45);
}
.hertz-home .hh-chip--dark { background: rgba(0,0,0,.5); color: #fff; }
.hertz-home .hh-chip--dark:hover {
    background: rgba(0,0,0,.68);
    border-color: var(--hz-yellow);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.hertz-home .hh-chip--dark b { color: var(--hz-yellow); font-weight: 700; margin-left: 4px; }
.hertz-home .hh-chip b { margin-left: 4px; }

/* boutons priorité (partial HertzProspect) */
.hertz-home .hh-hero__card--priority .hertz-priority-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hertz-home .hertz-priority-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px;
    background: rgba(0,0,0,.5);
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0 10px;
    text-decoration: none;
    color: #fff;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hertz-home .hertz-priority-btn:hover {
    background: rgba(0,0,0,.68);
    border-color: var(--hz-yellow);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.hertz-home .hertz-priority-btn__count {
    background: var(--hz-yellow); color: #000;
    font-weight: 500; font-size: 14px;
    min-width: 26px; height: 26px; padding: 0 5px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.hertz-home .hertz-priority-btn__label { font-size: 14px; font-weight: 500; letter-spacing: .1px; }

/* --------------------------------------------------------- SECTIONS ------ */
.hertz-home .hh-section { margin-top: 30px; }
.hertz-home .hh-section__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hertz-home .hh-section__title { font-size: 18px; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.hertz-home .hh-ico { color: var(--hz-ink); font-size: 18px; }
.hertz-home .hh-section__hint { color: var(--hz-muted); font-size: 12.5px; }

.hertz-home .hh-card {
    background: #fff;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    padding: 20px;
}

/* --------------------------------------------------- EN CE MOMENT -------- */
.hertz-home .hh-moment { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.hertz-home .hh-moment__left { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hertz-home .hh-moment__left.is-single { grid-template-columns: 1fr; }
.hertz-home .hh-voirplus { grid-column: 1 / -1; justify-self: start; }

.hh-booster {
    background: #fff;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    padding: 18px;
}
.hertz-home .hh-booster__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.hertz-home .hh-booster__title { font-weight: 700; font-size: 15px; }
.hertz-home .hh-badge {
    background: #FFF3D0; color: #8A6D00;
    font-size: 11.5px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.hertz-home .hh-booster__pos { font-size: 16px; margin: 14px 0; color: var(--hz-muted); }
.hertz-home .hh-booster__pos b { color: var(--hz-ink); font-weight: 700; }
.hertz-home .hh-booster__pos sup { font-weight: 700; }
.hertz-home .hh-booster__obj { color: var(--hz-muted); font-size: 14px; margin: 0 0 20px; }
.hertz-home .hh-booster__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.hertz-home .hh-moment__right .hh-actu {
    background: #fff;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    padding: 20px;
    min-height: 100%;
}
.hertz-home .hh-actu img { max-width: 100%; height: auto; }

/* ------------------------------------------- CONTENUS D'INFORMATION ------ */
.hertz-home .hh-info { width: 100%; }
.hertz-home .hh-info img { max-width: 100%; height: auto; }

/* ------------------------------------------------------ MES GAINS -------- */
.hertz-home .hh-gains {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 46px; /* place pour le bandeau palier, hors flux au-dessus de la carte Horizons */
}
.hertz-home .hh-gains__card {
    position: relative;
    background: #fff;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Bandeau jaune coiffant la carte Horizons : rappel du prochain palier + simulateur
   (Figma : dégradé #fff5cc → #ffd101, liseré pointillé jaune). Hors flux, ancré au-dessus
   de la carte et descendu de 16px sur elle : les trois cartes gardent ainsi la même
   hauteur, seule la Horizons est « coiffée ».
   Surtout pas de z-index négatif pour le passer « sous » la carte : il passerait aussi
   sous la boîte de la grille, qui capterait alors les clics du bouton Simulateur. À la
   place, le ::after recouvre les 16px du bas d'un faux haut de carte (fond blanc, coins
   arrondis, bordure), ce qui donne le même rendu. */
.hertz-home .hh-gains__tier {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 16px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 20px 22px;
    background: linear-gradient(180deg, #FFF5CC 0%, #FFD101 100%);
    border: 1px dashed #FFD101;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    font-size: 13px;
    line-height: 1.3;
    color: #000;
}
.hertz-home .hh-gains__tier::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: 0;
    height: 16px;
    background: #fff;
    border: 1px solid var(--hz-line);
    border-bottom: 0;
    border-radius: var(--hz-radius) var(--hz-radius) 0 0;
    pointer-events: none;
}
.hertz-home .hh-gains__tier b { font-weight: 700; }
.hertz-home .hh-gains__tier-ico { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.hertz-home .hh-gains__tier-txt { flex: 1 1 auto; min-width: 0; }
/* Le simulateur est un partial autonome qui fournit son propre bouton pleine largeur :
   on le compacte en pill (contour noir, fond transparent), sans icône, pour le loger
   dans le bandeau. */
.hertz-home .hh-gains__tier .hh-simu { flex: 0 0 auto; }
.hertz-home .hh-gains__tier .hh-simu__btn {
    width: auto;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1px;
    line-height: 20px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    white-space: nowrap;
}
.hertz-home .hh-gains__tier .hh-simu__btn:hover { background: rgba(0,0,0,.06); }
.hertz-home .hh-gains__tier .hh-simu__btn .q-icon { display: none; }

/* Ligne d'ancrage du visuel de carte : hauteur du chip, visuel en absolu par-dessus. */
.hertz-home .hh-gains__top { position: relative; }
.hertz-home .hh-gains__visual {
    position: absolute;
    right: 0;
    top: -4px;
    width: 125px;
    height: auto;
    pointer-events: none;
}

.hertz-home .hh-gains__chip {
    display: inline-block;
    align-self: flex-start; /* la carte est un flex column : sans ça le chip s'étire */
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: .1px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    color: #000;
}
.hertz-home .hh-gains__chip--yellow { background: #FFF5CC; }
.hertz-home .hh-gains__chip--white  { background: #fff; }
.hertz-home .hh-gains__title { font-weight: 700; font-size: 16px; line-height: 24px; margin-top: 10px; color: #000; }
.hertz-home .hh-gains__value { font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 8px; color: #000; }
.hertz-home .hh-gains__unit { font-size: 16px; font-weight: 700; color: var(--hz-muted); }
.hertz-home .hh-gains__est { font-size: 14px; line-height: 24px; margin-top: 10px; color: #000; }
.hertz-home .hh-gains__est b { font-weight: 700; }
.hertz-home .hh-gains__year { color: #7F7F7F; font-size: 14px; line-height: 24px; font-style: italic; margin-top: 10px; margin-bottom: 14px; }
.hertz-home .hh-gains__btn {
    margin-top: auto;
    text-align: center;
    background: var(--hz-yellow);
    color: #000;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .1px;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
}
.hertz-home .hh-gains__btn:hover { filter: brightness(.96); }
.hertz-home .hh-gains__btn--outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}
.hertz-home .hh-gains__btn--outline:hover { background: rgba(0,0,0,.06); filter: none; }

/* Troisième carte : cumul des 12 derniers mois, sur un voile bleu-lavande + tirelire
   (Figma : dégradé rgba(131,214,253,.15) → rgba(115,145,251,.15) sur blanc). */
.hertz-home .hh-gains__card--total {
    background: linear-gradient(117deg, rgba(131, 214, 253, .15) 6%, rgba(115, 145, 251, .15) 94%), #fff;
    border-color: #E4E6EC;
}
.hertz-home .hh-gains__card--total::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 24px;
    width: 146px;
    height: 121px;
    background: var(--hz-img-tirelire) no-repeat center / contain;
    pointer-events: none;
}

/* ----------------------------------------------------- PERFORMANCE ------- */
.hertz-home .hh-perf__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.hertz-home .hh-perf__title { font-weight: 700; font-size: 15px; }
.hertz-home .hh-toggle { display: inline-flex; background: #F1F3F7; border-radius: 999px; padding: 3px; }
.hertz-home .hh-toggle button {
    border: 0; background: transparent; cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--hz-muted);
    padding: 6px 14px; border-radius: 999px;
}
.hertz-home .hh-toggle button.active { background: var(--hz-dark); color: #fff; }
.hertz-home #hh-chart { width: 100%; height: 340px; }

/* --------------------------------------------------------- FOOTER -------- */
.hertz-home .hh-footer {
    margin-top: 30px;
    background: linear-gradient(135deg, var(--hz-dark) 0%, var(--hz-dark-2) 100%);
    border-radius: 20px;
    padding: 24px 28px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.hertz-home .hh-footer__ico {
    background: var(--hz-yellow); color: #1A1400;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    align-self: center;
}
.hertz-home .hh-footer__body { flex: 1; }
.hertz-home .hh-footer__title { font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.hertz-home .hh-footer__text { color: #B9C2CE; font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; }
.hertz-home .hh-footer__contact { color: #D6DCE4; font-size: 13px; line-height: 1.7; }
.hertz-home .hh-footer__contact b { color: #fff; }
.hertz-home .hh-footer__actions { display: flex; gap: 10px; flex-shrink: 0; align-self: center; }

/* ------------------------------------------------------ RESPONSIVE ------- */
@media (max-width: 1024px) {
    .hertz-home .hh-hero__grid { grid-template-columns: 1fr 1fr; }
    .hertz-home .hh-hero__intro { grid-column: 1 / -1; }
    /* L'intro passe pleine largeur : le visuel se retrouverait par-dessus les cartes. */
    .hertz-home .hh-hero__photo { display: none; }
}
@media (max-width: 1180px) {
    /* Cartes plus étroites : le visuel empiéterait sur le titre et le chiffre. */
    .hertz-home .hh-gains__visual { width: 92px; }
    .hertz-home .hh-gains__tier { flex-wrap: wrap; }
}
@media (max-width: 900px) {
    .hertz-home .hh-gains { grid-template-columns: 1fr; }
    .hertz-home .hh-gains__visual { width: 122px; }
}
@media (max-width: 720px) {
    .hertz-home .hh-hero__grid { grid-template-columns: 1fr; }
    .hertz-home .hh-moment { grid-template-columns: 1fr; }
    .hertz-home .hh-moment__left { grid-template-columns: 1fr; }
    .hertz-home .hh-footer { flex-direction: column; }
    .hertz-home .hh-footer__actions { align-self: stretch; }
}

/* ------------------------------------------- PROGRAMMES (public) ----- */
/* Page publique d'accueil : un bloc par type de carte, vers sa page création / renouvellement. */
.hertz-programs .hp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: center;
}
.hertz-programs .hp-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}
.hertz-programs .hp-empty {
    text-align: center;
    color: var(--hz-muted);
}
.hertz-programs .hp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.hertz-programs .hp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 20px;
    background: #fff;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    color: var(--hz-ink);
    text-decoration: none;
    text-align: center;
    transition: box-shadow .15s ease, transform .15s ease;
}
.hertz-programs .hp-card:hover {
    box-shadow: 0 8px 24px rgba(15, 22, 32, .12);
    transform: translateY(-2px);
}
.hertz-programs .hp-card__name {
    font-size: 18px;
    font-weight: 700;
}
