@import url('/css/copilote-design-system.css');

:root {
  --hb-bg: var(--cp-bg);
  --hb-hero: var(--cp-dark-gradient);
  --hb-card: var(--cp-card-gray);
  --hb-btn: var(--cp-btn-gradient);
  --hb-btn-text: #FFFFFF;
  --hb-ink: #23153f;
  --hb-muted: #6f667d;
  --hb-border: rgba(57, 32, 96, 0.12);
  --hb-white: #ffffff;
  --hb-shadow: 0 18px 45px rgba(35, 21, 63, 0.08);
  --hb-radius-lg: 28px;
  --hb-radius-md: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--hb-bg);
  color: var(--hb-ink);
  line-height: 1.7;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.blog-header,
.hb-header {
  background: var(--hb-hero);
  color: #fff;
}

.blog-nav,
.hb-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.blog-logo,
.hb-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.blog-nav-links,
.hb-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-nav-links a,
.hb-nav-links a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.95rem;
}

.blog-nav-links a:hover,
.hb-nav-links a:hover {
  color: #fff;
}

.blog-hero,
.hb-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 22px 78px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 42px;
  align-items: center;
}

.blog-kicker,
.hb-kicker,
.tag,
.hb-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  line-height: 1.1;
  font-size: 0.82rem;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.article .tag,
.hb-card .hb-tag,
.blog-card .tag,
.side-card .tag,
.featured-card .tag {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  color: #4a237f;
}

.blog-hero h1,
.hb-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 0 0 20px;
}

.blog-hero p,
.hb-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 1.12rem;
}

.hero-actions,
.hb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
}

.btn-primary,
.hb-btn-primary {
  background: var(--hb-btn);
  color: var(--hb-btn-text);
  box-shadow: 0 14px 28px rgba(55, 24, 104, 0.18);
}

.btn-secondary,
.hb-btn-secondary {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

.hero-visual img,
.hb-visual img {
  border-radius: var(--hb-radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.18);
}

.blog-main,
.hb-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 86px;
}

.section-head,
.hb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.hb-section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0;
}

.section-head p,
.hb-section-head p {
  color: var(--hb-muted);
  max-width: 560px;
  margin: 0;
}

.blog-grid,
.hb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  margin-bottom: 34px;
}

.side-stack {
  display: grid;
  gap: 24px;
}

.blog-card,
.hb-card,
.featured-card,
.side-card,
.hb-founder,
.article,
.about-card {
  background: var(--hb-white);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-lg);
  overflow: hidden;
  box-shadow: var(--hb-shadow);
}

.blog-card img,
.hb-card img,
.featured-card img,
.side-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body,
.hb-card-body {
  padding: 24px;
}

.blog-card h3,
.hb-card h3,
.featured-card h3,
.side-card h3 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.blog-card p,
.hb-card p,
.featured-card p,
.side-card p,
.card-body p,
.hb-card-body p {
  color: var(--hb-muted);
  margin: 0 0 18px;
}

.read-link,
.hb-read {
  font-weight: 850;
  color: #4a237f;
  text-decoration: none;
}

.trust-strip {
  margin: 52px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-item {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
  padding: 18px;
}

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: #4a237f;
}

.trust-item span {
  color: var(--hb-muted);
  font-size: 0.92rem;
}

.article-wrap,
.about-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 22px 86px;
}

.article,
.about-card {
  padding: clamp(28px, 5vw, 58px);
}

.article h1,
.about-card h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  margin: 0 0 18px;
}

.article h2,
.about-card h2 {
  margin-top: 42px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.article p,
.article li,
.about-card p {
  color: #41374f;
  font-size: 1.055rem;
}

.article-intro {
  color: #5d536b !important;
  font-size: 1.18rem !important;
}

.article-hero-image {
  border-radius: var(--hb-radius-lg);
  margin: 28px 0 34px;
  border: 1px solid var(--hb-border);
  box-shadow: var(--hb-shadow);
}

.article-box {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
  padding: 22px;
  margin: 30px 0;
}

.cta-box,
.hb-cta {
  background: var(--hb-hero);
  color: #fff;
  border-radius: var(--hb-radius-lg);
  padding: 32px;
  margin-top: 44px;
  box-shadow: var(--hb-shadow);
}

.hb-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.cta-box h2,
.hb-cta h2 {
  margin-top: 0;
  color: #fff;
}

.cta-box p,
.hb-cta p {
  color: rgba(255,255,255,0.84);
}

.cta-box .btn,
.hb-cta .hb-btn {
  background: #fff;
  color: #4a237f;
}

.hb-founder {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 58px;
}

.hb-founder-photo {
  background: var(--hb-hero);
  border-radius: var(--hb-radius-lg);
  min-height: 360px;
  overflow: hidden;
}

.hb-founder-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.blog-footer,
.hb-footer {
  text-align: center;
  color: var(--hb-muted);
  padding: 34px 20px 54px;
}

.blog-footer a,
.hb-footer a {
  color: #4a237f;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 920px) {
  .blog-hero,
  .hb-hero,
  .featured-grid,
  .hb-founder,
  .hb-cta {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .hb-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .section-head,
  .hb-section-head {
    display: block;
  }

  .blog-nav,
  .hb-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}





/* HEADER BUTTON NAV START */
.blog-nav-links,
.hb-nav-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

.blog-nav-links a,
.hb-nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  line-height: 1 !important;
}

.blog-nav-links a:hover,
.hb-nav-links a:hover {
  background: rgba(255,255,255,0.20) !important;
  color: #ffffff !important;
}

.blog-nav-links a[href="/copilote"],
.hb-nav-links a[href="/copilote"] {
  background: #ffffff !important;
  color: #3b1979 !important;
  border-color: #ffffff !important;
}

.blog-footer,
.hb-footer {
  font-size: 0.92rem !important;
}

@media (max-width: 720px) {
  .blog-nav-links,
  .hb-nav-links {
    gap: 8px !important;
  }

  .blog-nav-links a,
  .hb-nav-links a {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 0.86rem !important;
  }
}
/* HEADER BUTTON NAV END */


/* HEADER BUTTON COLOR FIX START */
.blog-nav-links a,
.hb-nav-links a {
  background: #ffffff !important;
  color: #2b1454 !important;
  border: 1px solid rgba(255,255,255,0.65) !important;
}

.blog-nav-links a:hover,
.hb-nav-links a:hover {
  background: #f2ecff !important;
  color: #2b1454 !important;
}

.blog-nav-links a[href="/copilote"],
.hb-nav-links a[href="/copilote"] {
  background: #6d3df2 !important;
  color: #ffffff !important;
  border-color: #6d3df2 !important;
}

.blog-nav-links a[href="/copilote"]:hover,
.hb-nav-links a[href="/copilote"]:hover {
  background: #5630c8 !important;
  color: #ffffff !important;
}
/* HEADER BUTTON COLOR FIX END */

/* LOGOS SEPARES HOME ABOUT START */

/* Accueil uniquement */
.hb-home-page .blog-nav,
.hb-home-page .hb-nav {
  min-height: 92px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  align-items: center !important;
}

.hb-home-page .blog-logo.logo-img-link,
.hb-home-page .hb-logo.logo-img-link {
  display: flex !important;
  align-items: center !important;
  width: 300px !important;
  max-width: 30vw !important;
  height: auto !important;
  line-height: 0 !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  transform: translateY(10px) !important;
}

.hb-home-page .site-logo-img {
  width: 300px !important;
  max-width: 30vw !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

/* Qui suis-je uniquement */
.hb-about-page .blog-nav,
.hb-about-page .hb-nav {
  min-height: 76px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  align-items: center !important;
}

.hb-about-page .blog-logo.logo-img-link,
.hb-about-page .hb-logo.logo-img-link {
  display: flex !important;
  align-items: center !important;
  width: 240px !important;
  max-width: 28vw !important;
  height: auto !important;
  line-height: 0 !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  transform: none !important;
}

.hb-about-page .site-logo-img {
  width: 240px !important;
  max-width: 28vw !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

@media (max-width: 720px) {
  .hb-home-page .blog-nav,
  .hb-home-page .hb-nav {
    min-height: 74px !important;
  }

  .hb-home-page .blog-logo.logo-img-link,
  .hb-home-page .hb-logo.logo-img-link,
  .hb-home-page .site-logo-img {
    width: 185px !important;
    max-width: 62vw !important;
  }

  .hb-home-page .blog-logo.logo-img-link,
  .hb-home-page .hb-logo.logo-img-link {
    transform: translateY(8px) !important;
  }

  .hb-about-page .blog-nav,
  .hb-about-page .hb-nav {
    min-height: 68px !important;
  }

  .hb-about-page .blog-logo.logo-img-link,
  .hb-about-page .hb-logo.logo-img-link,
  .hb-about-page .site-logo-img {
    width: 190px !important;
    max-width: 62vw !important;
  }
}
/* LOGOS SEPARES HOME ABOUT END */

/* GUIDES FOND GRIS COPILOTE START */
.hb-home-page .blog-card,
.hb-home-page .article-card,
.hb-home-page .post-card,
.hb-home-page .guide-card,
.hb-home-page .resource-card,
.hb-home-page .hb-card,
.hb-home-page .blog-grid article,
.hb-home-page .articles-grid article,
.hb-home-page .guides-grid article,
.hb-home-page .posts-grid article {
  background: var(--cp-card-gray) !important;
  border: 1px solid var(--cp-border-gray) !important;
  
}

.hb-home-page .blog-card .card-body,
.hb-home-page .article-card .card-body,
.hb-home-page .post-card .card-body,
.hb-home-page .guide-card .card-body,
.hb-home-page .resource-card .card-body {
  background: transparent !important;
}
/* GUIDES FOND GRIS COPILOTE END */

/* FIX FINAL 12 GUIDES MEME GRIS QUE TRUST ITEMS START */

/* Les 12 guides : section.blog-grid > article.blog-card */
.hb-home-page .blog-grid > article.blog-card {
  background: var(--cp-card-gray) !important;
  border: 1px solid var(--cp-border-gray) !important;
}

.hb-home-page .blog-grid > article.blog-card .card-body {
  background: var(--cp-card-gray) !important;
}

.hb-home-page .blog-grid > article.blog-card img {
  background: var(--cp-card-gray) !important;
}

/* FIX FINAL 12 GUIDES MEME GRIS QUE TRUST ITEMS END */

/* FIX SIMPLE 12 GUIDES = COULEUR TRUST-ITEM START */
.blog-grid > article.blog-card.hb-guide-trust-color {
  background: var(--hb-card) !important;
  background-color: var(--hb-card) !important;
  border: 1px solid var(--hb-border) !important;
}

.blog-grid > article.blog-card.hb-guide-trust-color .card-body,
.blog-grid > article.blog-card.hb-guide-trust-color img {
  background: transparent !important;
  background-color: transparent !important;
}
/* FIX SIMPLE 12 GUIDES = COULEUR TRUST-ITEM END */

/* QUI SUIS JE BLOC TEXTE GRIS SANS CADRE EXTERIEUR START */
.hb-about-page main,
.hb-about-page .about-main,
.hb-about-page .about-section,
.hb-about-page .about-wrapper,
.hb-about-page .about-container {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hb-about-page .about-card,
.hb-about-page .presentation-card,
.hb-about-page .hb-about-card,
.hb-about-page article {
  background: #E9E9E9 !important;
  background-color: #E9E9E9 !important;
  border: 1px solid #DADADA !important;
  border-radius: 28px !important;
  box-shadow: none !important;
}
/* QUI SUIS JE BLOC TEXTE GRIS SANS CADRE EXTERIEUR END */

/* BADGE A PROPOS NOIR START */
.hb-about-page .hb-about-badge-black {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  box-shadow: none !important;
}

.hb-about-page .hb-about-badge-black * {
  color: #ffffff !important;
}
/* BADGE A PROPOS NOIR END */
