/*
 Theme Name:   Divi Child - Autopiia
 Theme URI:    https://autopiia.fr
 Description:  Theme enfant pour Divi - personnalisations Autopiia
 Author:       Miguel Clemente
 Author URI:   https://autopiia.fr
 Template:     Divi
 Version:      1.10.4
 Text Domain:  divi-child-autopiia
*/

/* Personnalisations CSS ci-dessous */

/* -- Menu mobile Divi -- */
@media (max-width: 980px) {
  /* Dropdown menu */
  .et_pb_menu .et_mobile_menu,
  .et_pb_menu_0_tb_header .et_mobile_menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    width: 260px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border-top: none !important;
    padding: 12px 0 !important;
    margin-top: 8px !important;
    background: #fff !important;
  }
  .et_pb_menu .et_mobile_menu li a,
  .et_pb_menu_0_tb_header .et_mobile_menu li a {
    padding: 12px 24px !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
  }
  .et_pb_menu .et_mobile_menu li:last-child a,
  .et_pb_menu_0_tb_header .et_mobile_menu li:last-child a {
    border-bottom: none !important;
  }
  /* Bouton Prendre RDV en evidence sur mobile */
  .et_pb_button_0_tb_header {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 8px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: #00C2FF !important;
    color: #0A0A0B !important;
    border-radius: 100px !important;
    border: none !important;
  }
}

/* -- Bordure animee (sweep cyan) -- */
@property --ap-sweep {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.ap-glow-border {
  position: relative !important;
  overflow: visible !important;
  border-radius: 16px;
}
.ap-glow-border::before {
  content: '' !important;
  position: absolute !important;
  inset: -4px;
  border-radius: 20px;
  z-index: -1;
  background: conic-gradient(
    from var(--ap-sweep),
    transparent 0%,
    rgba(0, 194, 255, 0.8) 10%,
    transparent 25%
  );
  filter: blur(12px);
  animation: ap-border-sweep 6s linear infinite;
  pointer-events: none;
}
@keyframes ap-border-sweep {
  0%   { --ap-sweep: 0deg; }
  100% { --ap-sweep: 360deg; }
}

/* -- Blog archive + single -- */

/* Shared - force override Divi defaults */
.ap-blog, .ap-article {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  color: #1a1a1a; background: #fff;
}
#main-content .ap-blog, #main-content .ap-article,
.et-main-area .ap-blog, .et-main-area .ap-article { padding-top: 0 !important; margin: 0 !important; }
body:not(.et-tb) .ap-blog .container, body:not(.et-tb) .ap-article .container { padding-top: 0 !important; max-width: none !important; }

/* Navbar background on blog/article pages */
.single-post .et-l--header,
.blog .et-l--header,
.single-post #main-header,
.blog #main-header,
.single-post .et_pb_section_0_tb_header,
.blog .et_pb_section_0_tb_header { background: #FAFAF9 !important; }
.ap-blog__container, .ap-article__container {
  max-width: 1100px !important; margin: 0 auto !important; padding: 0 24px !important;
  width: 100% !important;
}

/* Blog hero */
.ap-blog__hero { background: #FAFAF9; padding: 80px 0 48px; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ap-blog__badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: #00C2FF; background: rgba(0,194,255,0.06); border: 1px solid rgba(0,194,255,0.12);
  border-radius: 60px; padding: 6px 16px; margin-bottom: 16px;
}
.ap-blog__hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px, 5vw, 44px); font-weight: 700; margin: 0 0 12px; color: #1a1a1a; }
.ap-blog__hero-desc { font-size: 17px; color: #6b6b6b; max-width: 560px; margin: 0 auto 28px; line-height: 1.6; }

/* Search */
.ap-blog__search { display: flex !important; max-width: 480px !important; margin: 0 auto !important; position: relative !important; }
.ap-blog .ap-blog__search-input,
.ap-blog__search input[type="text"].ap-blog__search-input,
input.ap-blog__search-input {
  width: 100% !important; padding: 16px 56px 16px 24px !important; border-radius: 100px !important;
  border: 1px solid rgba(0,0,0,0.1) !important; background: #fff !important; font-size: 15px !important;
  font-family: inherit !important; color: #1a1a1a !important; outline: none !important;
  transition: all 0.2s !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  height: auto !important; line-height: 1.4 !important; box-sizing: border-box !important;
}
.ap-blog .ap-blog__search-input:focus,
input.ap-blog__search-input:focus { border-color: #00C2FF !important; box-shadow: 0 2px 12px rgba(0,194,255,0.12) !important; }
input.ap-blog__search-input::placeholder { color: #9CA3AF !important; }
.ap-blog__search-btn {
  position: absolute !important; right: 6px !important; top: 50% !important; transform: translateY(-50%) !important;
  background: #00C2FF !important; border: none !important; border-radius: 50% !important;
  width: 40px !important; height: 40px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important; color: #0A0A0B !important; transition: background 0.2s !important;
}
.ap-blog__search-btn:hover { background: #00A8E0 !important; }

/* Featured article */
.ap-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  margin: 48px 0 40px; padding: 32px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none; color: inherit; transition: box-shadow 0.3s ease;
}
.ap-featured:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.ap-featured__img-wrap { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; }
.ap-featured__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ap-featured:hover .ap-featured__img { transform: scale(1.02); }
.ap-featured__img-placeholder { background: linear-gradient(135deg, #f0f0f0, #e0e0e0); }
.ap-featured__title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.2; margin: 12px 0; color: #1a1a1a; }
.ap-featured__excerpt { font-size: 16px; color: #6b6b6b; line-height: 1.6; margin: 0 0 16px; }

/* Filters */
.ap-blog__filters {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; padding: 32px 0 24px; margin: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ap-blog__filter {
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  text-decoration: none; color: #6b6b6b; border: 1px solid rgba(0,0,0,0.08);
  background: #fff; transition: all 0.2s;
}
.ap-blog__filter:hover { color: #00C2FF; border-color: #00C2FF; }
.ap-blog__filter--active { background: #00C2FF; color: #0A0A0B; border-color: #00C2FF; }
.ap-blog__filter--active:hover { background: #00C2FF; color: #0A0A0B; }

/* Card grid */
.ap-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; padding-top: 32px; padding-bottom: 80px; }
.ap-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ap-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.ap-card__img-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; }
.ap-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ap-card:hover .ap-card__img { transform: scale(1.03); }
.ap-card__body { padding: 24px; }
.ap-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; color: #9CA3AF; }
.ap-card__cat {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: #00C2FF; background: rgba(0,194,255,0.08); border-radius: 4px; padding: 3px 8px;
}
.ap-card__title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.ap-card__title a { color: #1a1a1a; text-decoration: none; }
.ap-card__title a:hover { color: #00C2FF; }
.ap-card__excerpt { font-size: 15px; color: #6b6b6b; line-height: 1.6; margin: 0 0 16px; }
.ap-card__link { font-size: 14px; font-weight: 600; color: #00C2FF; text-decoration: none; }
.ap-card__link:hover { text-decoration: underline; }

/* Pagination */
.ap-blog__pagination { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding-top: 16px; }
.ap-blog__pagination a, .ap-blog__pagination span { padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.ap-blog__pagination a { color: #6b6b6b; border: 1px solid rgba(0,0,0,0.1); }
.ap-blog__pagination a:hover { color: #00C2FF; border-color: #00C2FF; }
.ap-blog__pagination .current { background: #00C2FF; color: #fff; border: 1px solid #00C2FF; }
.ap-blog__empty { grid-column: 1 / -1; text-align: center; color: #9CA3AF; font-size: 16px; padding: 40px 0; }

/* Breadcrumb */
.ap-breadcrumb { font-size: 13px; margin-bottom: 20px; }
.ap-breadcrumb a { color: #9CA3AF; text-decoration: none; transition: color 0.2s; }
.ap-breadcrumb a:hover { color: #00C2FF; }
.ap-breadcrumb__sep { color: #d1d5db; margin: 0 6px; }
.ap-breadcrumb__current { color: #6b6b6b; }

/* -- Progress bar -- */
.ap-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: #00C2FF;
  z-index: 99999; transition: width 0.1s linear; pointer-events: none;
}

/* -- Byline (author + meta on one line) -- */
.ap-article__byline {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 20px;
}
.ap-author { display: flex; align-items: center; gap: 10px; }
.ap-author__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #00C2FF, #6366F1);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ap-author__info { display: flex; flex-direction: column; }
.ap-author__name { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.2; }
.ap-author__role { font-size: 11px; color: #9CA3AF; line-height: 1.2; }
.ap-article__byline-sep { width: 1px; height: 24px; background: rgba(0,0,0,0.1); }
.ap-article__byline-details {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: #9CA3AF;
}
.ap-article__byline-dot { color: #d1d5db; }
.ap-article__reading-time {
  display: inline-flex; align-items: center; gap: 4px; color: #9CA3AF;
}

/* -- Share buttons -- */
.ap-share--sidebar { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06); }
.ap-share--sidebar .ap-share__title {
  font-size: 12px; font-weight: 700; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px;
}
.ap-share--sidebar .ap-share__buttons { display: flex; gap: 8px; }
.ap-share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08); background: #fff;
  color: #6b6b6b; cursor: pointer; transition: all 0.2s; font-family: inherit; font-size: 13px;
}
.ap-share__btn:hover { color: #00C2FF; border-color: #00C2FF; }
.ap-share__btn--copied { color: #10b981 !important; border-color: #10b981 !important; }
.ap-share--bottom {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px 0; margin-bottom: 32px;
  border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ap-share__label { font-size: 14px; font-weight: 600; color: #6b6b6b; }
.ap-share--bottom .ap-share__buttons { display: flex; gap: 8px; }
.ap-share__btn--labeled {
  width: auto; padding: 8px 16px; font-weight: 600;
}

/* -- Related articles -- */
.ap-related { padding: 48px 0 32px; }
.ap-related__title {
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700;
  color: #1a1a1a; margin: 0 0 24px;
}
.ap-related__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}

/* -- Article single -- */
.ap-article__hero { background: #FAFAF9; padding: 48px 0 40px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ap-article__title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 4vw, 40px); font-weight: 700; line-height: 1.15; margin: 12px 0 0; color: #1a1a1a; max-width: 800px; }
.ap-article__lead { font-size: 19px; color: #6b6b6b; line-height: 1.6; max-width: 700px; margin: 0; }
.ap-article__featured { margin: 40px 0; border-radius: 16px; overflow: hidden; }
.ap-article__featured-img { width: 100%; height: auto; display: block; }

/* Article body (TOC sidebar + content) */
.ap-article__body {
  max-width: 1100px; margin: 0 auto;
  padding-top: 40px; padding-bottom: 48px;
  display: grid; grid-template-columns: 240px 1fr; gap: 48px;
  position: relative;
}

/* TOC sidebar sticky */
.ap-toc {
  position: sticky; top: 100px; align-self: start;
  background: #FAFAF9;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 20px 20px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ap-toc__title {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  color: #9CA3AF; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ap-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.ap-toc__item { margin-bottom: 8px; }
.ap-toc__item--main { counter-increment: toc; }
.ap-toc__item--main a::before { content: counter(toc) ". "; color: #00C2FF; font-weight: 600; }
.ap-toc__item--sub { padding-left: 16px; }
.ap-toc__item a {
  color: #6b6b6b; text-decoration: none; font-size: 13px; line-height: 1.5;
  transition: color 0.2s ease; display: block;
}
.ap-toc__item a:hover { color: #00C2FF; }

/* Article content */
.ap-article__content { max-width: 720px; font-size: 17px; line-height: 1.8; color: #374151; overflow-wrap: break-word; word-wrap: break-word; }
.ap-article__content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: #1a1a1a; margin: 48px 0 16px; }
.ap-article__content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 36px 0 12px; }
.ap-article__content p { margin: 0 0 20px; }
.ap-article__content a { color: #00C2FF; text-decoration: underline; text-underline-offset: 3px; }
.ap-article__content a:hover { color: #0891B2; }
.ap-article__content ul, .ap-article__content ol { margin: 0 0 20px; padding-left: 24px; }
.ap-article__content li { margin-bottom: 8px; }
.ap-article__content blockquote { border-left: 3px solid #00C2FF; margin: 32px 0; padding: 16px 24px; background: rgba(0,194,255,0.04); border-radius: 0 8px 8px 0; font-style: italic; color: #4b5563; }
.ap-article__content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.ap-article__content strong { color: #1a1a1a; }
.ap-article__content .wp-block-table { overflow-x: auto; margin: 24px 0; }
.ap-article__content .wp-block-table table {
  width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5;
  table-layout: fixed; word-wrap: break-word;
}
.ap-article__content .wp-block-table th {
  background: #0A0A0B; color: #fff; font-weight: 600; text-align: left;
  padding: 12px 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
}
.ap-article__content .wp-block-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); color: #374151;
}
.ap-article__content .wp-block-table tr:hover td { background: rgba(0,194,255,0.03); }
.ap-article__content .wp-block-table a { color: #00C2FF; word-break: break-all; }
.ap-article__content .wp-block-table td, .ap-article__content .wp-block-table th { overflow-wrap: break-word; }

/* Lead magnet inline */
.ap-lead-magnet {
  display: flex; flex-direction: column; text-align: center;
  background: #0A0A0B; border-radius: 20px; padding: 40px 36px;
  margin: 48px 0; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.ap-lead-magnet::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.ap-lead-magnet__icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 20px;
  background: rgba(0,194,255,0.1); display: flex; align-items: center; justify-content: center;
}
.ap-lead-magnet__icon svg { width: 28px; height: 28px; }
.ap-lead-magnet__body { position: relative; z-index: 1; }
.ap-lead-magnet__title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #00C2FF; margin: 0 0 10px !important; padding: 0 !important;
}
.ap-lead-magnet__heading {
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700;
  color: #fff !important; margin: 0 0 10px !important; padding: 0 !important; line-height: 1.3;
}
.ap-lead-magnet__desc {
  font-size: 15px; color: #9CA3AF; margin: 0 0 24px !important; padding: 0 !important;
  line-height: 1.6; max-width: 480px; margin-left: auto !important; margin-right: auto !important;
}
.ap-lead-magnet__form {
  display: flex; gap: 10px; align-items: center;
  max-width: 460px; margin: 0 auto;
}
.ap-lead-magnet__input {
  flex: 1; padding: 14px 20px !important; border-radius: 100px !important;
  border: 1px solid rgba(255,255,255,0.12) !important; background: rgba(255,255,255,0.06) !important;
  color: #fff !important; font-size: 15px !important; font-family: inherit !important;
  outline: none !important; height: auto !important; line-height: 1.4 !important;
  box-sizing: border-box !important;
}
.ap-lead-magnet__input::placeholder { color: #6b6b6b !important; }
.ap-lead-magnet__input:focus { border-color: #00C2FF !important; }
.ap-lead-magnet__btn {
  padding: 14px 28px !important; font-size: 14px !important; white-space: nowrap; cursor: pointer !important;
}
.ap-lead-magnet__privacy {
  font-size: 12px; color: #6b6b6b; margin: 10px 0 0 !important; padding: 0 !important;
}

/* Article CTA */
.ap-article__cta {
  position: relative; overflow: hidden;
  text-align: center; padding: 48px 32px; margin: 0 0 48px;
  background: #0A0A0B; border-radius: 16px; color: #fff;
}
.ap-article__cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,255,0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.ap-article__cta h3 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; margin: 0 0 8px; color: #fff; position: relative; z-index: 1; }
.ap-article__cta p { font-size: 16px; color: #9CA3AF; margin: 0 0 24px; position: relative; z-index: 1; }
.ap-btn {
  display: inline-block; padding: 14px 32px;
  border-radius: 100px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.2s ease;
  position: relative; z-index: 1;
}
.ap-btn--primary {
  background: #00C2FF; color: #1a1a1a;
  box-shadow: 0 0 24px rgba(0,194,255,0.35), 0 0 60px rgba(0,194,255,0.15);
}
.ap-btn--primary:hover {
  background: #00C2FF; color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(0,194,255,0.5), 0 0 80px rgba(0,194,255,0.2);
}

/* Sticky bottom bar */
.ap-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.ap-sticky-bar--visible { transform: translateY(0); pointer-events: auto; }
.ap-sticky-bar__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(10, 10, 11, 0.95); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ap-sticky-bar__text { font-size: 14px; font-weight: 600; color: #fff; }
.ap-sticky-bar__btn {
  padding: 10px 24px !important; font-size: 13px !important; white-space: nowrap;
  box-shadow: 0 0 16px rgba(0,194,255,0.3) !important;
}

/* Article nav */
.ap-article__nav { display: flex; gap: 24px; padding-bottom: 80px; flex-wrap: wrap; }
.ap-article__nav-link {
  flex: 1; min-width: 200px; padding: 20px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08); text-decoration: none; transition: all 0.3s ease;
}
.ap-article__nav-link:hover { border-color: #00C2FF; transform: translateY(-2px); }
.ap-article__nav-link span { font-size: 13px; color: #9CA3AF; display: block; margin-bottom: 4px; }
.ap-article__nav-link strong { font-size: 15px; color: #1a1a1a; }
.ap-article__nav-link--next { text-align: right; }

/* Responsive */
@media (max-width: 1024px) {
  .ap-article__body { grid-template-columns: 1fr; gap: 0; }
  .ap-toc {
    position: relative; top: auto;
    border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0 0 24px 0; margin-bottom: 32px;
    background: #FAFAF9; border-radius: 12px; padding: 20px 24px;
  }
  .ap-share--sidebar { display: none; }
  .ap-related__grid { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) {
  .ap-share--bottom { display: none; }
}
@media (max-width: 768px) {
  .ap-blog__hero, .ap-article__hero { padding: 60px 0 36px; }
  .ap-blog__grid { grid-template-columns: 1fr; gap: 24px; }
  .ap-featured { grid-template-columns: 1fr; padding: 20px; }
  .ap-featured__title { font-size: 22px; }
  .ap-blog__filters { flex-direction: row; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .ap-blog__count { display: none; }
  .ap-article__content { font-size: 16px; }
  .ap-article__nav { flex-direction: column; }
  .ap-share--bottom { flex-direction: column; gap: 12px; }
  .ap-lead-magnet { flex-direction: column; padding: 24px; }
  .ap-lead-magnet__form { flex-direction: column; }
  .ap-lead-magnet__heading { font-size: 18px; }
}

/* -- Exit-intent popup -- */
.ap-exit-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0, 0, 0, 0);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease, background 0.3s ease;
  pointer-events: none;
}
.ap-exit-overlay--visible {
  opacity: 1; background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}
.ap-exit-popup {
  position: relative;
  background: #0A0A0B; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 48px 40px 40px; max-width: 440px; width: 90%;
  text-align: center;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ap-exit-overlay--visible .ap-exit-popup {
  transform: translateY(0) scale(1);
}
.ap-exit-popup__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: #6b6b6b;
  font-size: 28px; line-height: 1; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.ap-exit-popup__close:hover { color: #fff; background: rgba(255,255,255,0.06); }
.ap-exit-popup__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(0, 194, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.ap-exit-popup__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 700; color: #fff;
  margin: 0 0 12px;
}
.ap-exit-popup__text {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #00C2FF; margin: 0 0 8px;
}
.ap-exit-popup__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: #fff;
  margin: 0 0 10px; line-height: 1.3;
}
.ap-exit-popup__sub {
  font-size: 14px; color: #9CA3AF; line-height: 1.5;
  margin: 0 0 24px;
}
.ap-exit-popup__form {
  display: flex; gap: 10px; max-width: 380px; margin: 0 auto;
}
.ap-exit-popup__input {
  flex: 1; padding: 14px 20px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06);
  color: #fff; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.ap-exit-popup__input::placeholder { color: #6b6b6b; }
.ap-exit-popup__input:focus { border-color: #00C2FF; }
.ap-exit-popup__btn {
  padding: 14px 24px !important; font-size: 14px !important; white-space: nowrap;
}
.ap-exit-popup__privacy {
  font-size: 12px; color: #6b6b6b; margin: 10px 0 0;
}
.ap-exit-popup__success {
  color: #10b981; font-size: 15px; font-weight: 600;
  margin: 0; padding: 8px 0; text-align: center;
}
.ap-exit-popup__skip {
  display: block; margin: 16px auto 0;
  background: none; border: none; color: #6b6b6b;
  font-size: 13px; cursor: pointer; font-family: inherit;
  transition: color 0.2s;
}
.ap-exit-popup__skip:hover { color: #9CA3AF; }
