/* ==========================================================================
   Section Rachis - Homepage Voyance v5
   Style Avenirtel + responsive + popup voyant
   ========================================================================== */

:root {
  --srh-violet:      #5F27CD;
  --srh-violet-dark: #4A1FA8;
  --srh-violet-soft: #F0EAFD;
  --srh-green:       #0E7C5F;       /* darkened from #119B78 for WCAG AA 4.55:1 */
  --srh-green-dark:  #0A6B52;
  --srh-bg:          #F6F6FC;
  --srh-bg-card:     #FFFFFF;
  --srh-text:        #212529;
  --srh-text-mid:    #495057;
  --srh-text-mute:   #6C757D;
  --srh-border:      #E5E7EB;
  --srh-gold:        #FFC107;
  --srh-status:      #0E7C5F;       /* darkened for WCAG AA */
  --srh-shadow-sm:   0 1px 2px rgba(95, 39, 205, 0.05);
  --srh-shadow:      0 4px 14px rgba(95, 39, 205, 0.08);
  --srh-shadow-lg:   0 10px 40px rgba(0, 0, 0, 0.18);
  --srh-radius:      8px;
  --srh-radius-lg:   14px;
}

/* ==================== ASTRA CONTAINER OVERRIDE (full-width + zero gap mobile) ==================== */
.page-template-page-home #content,
.home #content,
.page-template-page-home .site-content,
.home .site-content,
.page-template-page-home #content .ast-container,
.home #content .ast-container,
.page-template-page-home #primary,
.home #primary {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Kill any vertical gap between header and hero (was creating white strip on mobile) */
.page-template-page-home #content,
.home #content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-top: 0 !important;
}
.page-template-page-home #page,
.home #page,
.page-template-page-home .site,
.home .site {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.page-template-page-home .ast-content-area,
.home .ast-content-area {
  padding: 0 !important;
  margin: 0 !important;
}
.page-template-page-home article.page,
.home article.page {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.page-template-page-home .entry-header,
.page-template-page-home .entry-content,
.home .entry-header,
.home .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}
.page-template-page-home .entry-title,
.home .entry-title { display: none !important; }

/* Header simple: logo gauche + CTA téléphone droite, NO menu on homepage */
.page-template-page-home #masthead .main-header-bar,
.home #masthead .main-header-bar {
  padding-right: 200px !important; /* room for the absolute CTA téléphone */
}
.page-template-page-home #masthead .ast-container,
.home #masthead .ast-container {
  max-width: 1240px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
/* Hide menu Astra on homepage (header = logo + CTA only) — use page-id-20 for max specificity */
.page-template-page-home #masthead .main-header-bar-navigation,
.home #masthead .main-header-bar-navigation,
body.page-id-20 #masthead .main-header-bar-navigation,
.page-template-page-home #masthead .ast-builder-menu,
.home #masthead .ast-builder-menu,
body.page-id-20 #masthead .ast-builder-menu,
.page-template-page-home #masthead nav.main-navigation,
.home #masthead nav.main-navigation,
body.page-id-20 #masthead nav.main-navigation,
.page-template-page-home #masthead .menu-toggle,
.home #masthead .menu-toggle,
body.page-id-20 #masthead .menu-toggle,
.page-template-page-home #masthead .ast-mobile-menu-buttons,
.home #masthead .ast-mobile-menu-buttons,
body.page-id-20 #masthead .ast-mobile-menu-buttons,
body.page-id-20 #ast-mobile-header,
body.page-id-20 #masthead .ast-builder-menu-1,
.page-template-page-home #masthead .ast-builder-menu-1,
.home #masthead .ast-builder-menu-1 {
  display: none !important;
}

/* ==================== BODY + HEADER ==================== */
.page-template-page-home,
.home {
  background: var(--srh-bg);
  color: var(--srh-text);
  font-family: 'Inter', Arial, sans-serif;
}

.page-template-page-home #masthead,
.home #masthead,
.page-template-page-home .main-header-bar-wrap,
.home .main-header-bar-wrap,
.page-template-page-home .ast-primary-header-bar,
.home .ast-primary-header-bar,
.page-template-page-home .main-header-bar,
.home .main-header-bar {
  background: var(--srh-violet) !important;
  background-color: var(--srh-violet) !important;
  border: none !important;
  box-shadow: none !important;
}
.page-template-page-home #masthead {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.page-template-page-home #masthead .menu-link,
.home #masthead .menu-link,
.page-template-page-home #masthead .site-title a,
.page-template-page-home #masthead .site-title,
.page-template-page-home #masthead .ast-builder-text-area,
.page-template-page-home #masthead a {
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
}
.page-template-page-home #masthead .menu-link { font-weight: 500 !important; }
.page-template-page-home #masthead .site-title,
.page-template-page-home #masthead .site-title a {
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  font-size: 22px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-block !important;
  word-break: keep-all !important;
  word-spacing: normal !important;
}
@media (max-width: 768px) {
  .page-template-page-home #masthead .site-title,
  .page-template-page-home #masthead .site-title a {
    font-size: 16px !important;
    max-width: 60vw !important;
  }
  .page-template-page-home #masthead .site-branding,
  .page-template-page-home #masthead .ast-site-identity { min-width: 0 !important; }
}
@media (max-width: 480px) {
  .page-template-page-home #masthead .site-title,
  .page-template-page-home #masthead .site-title a { font-size: 14px !important; }
}
.page-template-page-home #masthead .menu-link:hover { color: rgba(255, 255, 255, 0.85) !important; }
.page-template-page-home #ast-desktop-header,
.home #ast-desktop-header { position: relative; }

/* Header CTA téléphone */
.srh-header-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--srh-green) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: var(--srh-radius);
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  transition: background 0.15s ease;
  white-space: nowrap;
  line-height: 1.1;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 50;
}
.srh-header-cta:hover {
  background: var(--srh-green-dark) !important;
  color: #fff !important;
}
.srh-header-cta__icon { font-size: 1em; }
.srh-header-cta__num { font-weight: 700; display: inline-block; }
.srh-header-cta__sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
}

/* ==================== MAIN ==================== */
.srh {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--srh-text);
  background: var(--srh-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  width: 100%;
}
.srh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.srh-container--narrow { max-width: 760px; }

/* ==================== HERO (full-width + dégradé enrichi + déco astro) ==================== */
.srh-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(186, 132, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(95, 39, 205, 0.6) 0%, transparent 60%),
    linear-gradient(160deg, #6E2BE0 0%, #5F27CD 35%, #4A1FA8 70%, #2D1180 100%);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  width: 100%;
}
.srh-hero__bg-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  pointer-events: none;
  opacity: 1; /* now uses individual opacity per group */
}
.srh-hero__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.srh-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 20px;
}

.srh-hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.15;
  color: #fff;
}
.srh-hero__title-1 {
  display: block;
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -0.5px;
}
.srh-hero__title-2 {
  display: block;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
}

.srh-hero__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 28px;
  max-width: 560px;
  line-height: 1.6;
}

.srh-hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Buttons */
.srh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--srh-radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
  line-height: 1;
  min-height: 44px; /* WCAG touch target minimum */
}
.srh-btn--solid {
  background: var(--srh-green);
  color: #fff;
  border-color: var(--srh-green);
}
.srh-btn--solid:hover {
  background: var(--srh-green-dark);
  border-color: var(--srh-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 155, 120, 0.35);
  color: #fff;
}
.srh-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.srh-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}
.srh-btn--outline,
button.srh-btn--outline,
.srh-card__more {
  background: transparent !important;
  color: var(--srh-violet) !important;
  border-color: var(--srh-violet) !important;
  border-width: 2px !important;
  border-style: solid !important;
}
.srh-btn--outline:hover,
button.srh-btn--outline:hover,
.srh-card__more:hover {
  background: var(--srh-violet) !important;
  color: #fff !important;
}
.srh-btn--card {
  flex: 1;
  padding: 11px 14px;
  font-size: 13.5px;
}
.srh-btn__icon { font-size: 1em; }

.srh-hero__offer {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.srh-hero__offer-pill {
  display: inline-block;
  background: var(--srh-gold);
  color: var(--srh-text);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-right: 6px;
}
.srh-hero__offer-after { color: rgba(255, 255, 255, 0.7); }

/* Trust band */
.srh-trust {
  background: var(--srh-bg-card);
  border-bottom: 1px solid var(--srh-border);
  padding: 18px 0;
  overflow: hidden;
}
.srh-trust__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Mobile marquee (hidden on desktop) */
.srh-trust__marquee { display: none; }

@media (max-width: 768px) {
  .srh-trust__desktop { display: none !important; }
  .srh-trust__marquee {
    display: block !important;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
  }
  .srh-trust__marquee .srh-trust__track {
    display: inline-flex;
    gap: 32px;
    animation: srh-marquee 25s linear infinite;
  }
  .srh-trust__marquee .srh-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--srh-text-mid);
    flex-shrink: 0;
    white-space: nowrap;
  }
  .srh-trust__marquee .srh-trust__item strong { color: var(--srh-text); }
  @keyframes srh-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}
.srh-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--srh-text-mid);
}
.srh-trust__item strong { color: var(--srh-text); font-weight: 600; }
.srh-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--srh-violet-soft);
  color: var(--srh-violet);
  border-radius: 999px;
  font-size: 13px;
}

/* ==================== ANNUAIRE ==================== */
.srh-annuaire { padding: 60px 0 80px; }
.srh-annuaire__header { text-align: center; margin-bottom: 36px; }
.srh-h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  color: var(--srh-text);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.srh-h2__sub { font-size: 15px; color: var(--srh-text-mute); margin: 0; }

.srh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.srh-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  background: var(--srh-bg-card);
  border: 1px solid var(--srh-border);
  border-radius: var(--srh-radius-lg);
  padding: 20px;
  transition: all 0.2s ease;
}
.srh-card:hover {
  border-color: var(--srh-violet);
  box-shadow: var(--srh-shadow);
  transform: translateY(-2px);
}

.srh-card__avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 700;
  flex-shrink: 0;
}

.srh-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.srh-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.srh-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--srh-text);
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.srh-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--srh-status);
  font-size: 12px;
  font-weight: 600;
}

.srh-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.srh-card__tag {
  background: var(--srh-violet-soft);
  color: var(--srh-violet);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.srh-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--srh-text-mute);
}
.srh-card__rating { display: inline-flex; align-items: center; gap: 4px; }
.srh-card__star { color: var(--srh-gold); }
.srh-card__rating strong { color: var(--srh-text); font-weight: 700; }

.srh-card__desc {
  font-size: 13.5px;
  color: var(--srh-text-mid);
  margin: 4px 0 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.srh-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.srh-card__more {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

/* Card offer row (under CTAs) */
.srh-card__offer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--srh-border);
  font-size: 12px;
  color: var(--srh-text-mute);
  flex-wrap: wrap;
}
.srh-card__offer-pill {
  background: var(--srh-gold);
  color: var(--srh-text);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.srh-card__offer-after { font-weight: 500; }

.srh-grid__notice {
  text-align: center;
  color: var(--srh-text-mute);
  font-size: 13px;
  padding: 16px;
  margin-top: 24px;
  background: var(--srh-violet-soft);
  border-radius: var(--srh-radius);
}

/* ==================== EDITORIAL ==================== */
.srh-editorial {
  padding: 70px 0;
  background: var(--srh-bg-card);
  border-top: 1px solid var(--srh-border);
}
.srh-editorial__content { color: var(--srh-text); line-height: 1.7; font-size: 16px; }
.srh-editorial__content h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  color: var(--srh-text);
  margin: 0 0 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.srh-editorial__content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--srh-text);
  margin: 1.8em 0 0.6em;
}
.srh-editorial__content p { margin: 0 0 1em; }
.srh-editorial__content ul { margin: 0 0 1.2em; padding-left: 1.5em; }
.srh-editorial__content ul li { margin-bottom: 0.4em; }
.srh-editorial__content a {
  color: var(--srh-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.srh-editorial__content strong { color: var(--srh-text); font-weight: 700; }
.srh-editorial__content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.srh-editorial__content ol li { margin-bottom: 0.6em; line-height: 1.55; }

/* Table comparison Voyance CB vs Audiotel */
.srh-table-wrap { overflow-x: auto; margin: 0 0 1.6em; -webkit-overflow-scrolling: touch; }
.srh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--srh-bg-card);
  border-radius: var(--srh-radius);
  overflow: hidden;
  box-shadow: var(--srh-shadow-sm);
  border: 1px solid var(--srh-border);
}
.srh-table th {
  background: var(--srh-violet);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
}
.srh-table th:first-child { border-top-left-radius: var(--srh-radius); }
.srh-table th:last-child { border-top-right-radius: var(--srh-radius); }
.srh-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--srh-border);
  vertical-align: top;
  color: var(--srh-text-mid);
}
.srh-table td:first-child {
  font-weight: 600;
  color: var(--srh-text);
  background: var(--srh-bg);
}
.srh-table tbody tr:hover td { background: rgba(95, 39, 205, 0.04); }

/* Lists pros/cons (✅/❌) */
.srh-list-pros, .srh-list-cons {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 1em !important;
}
.srh-list-pros li, .srh-list-cons li {
  padding: 8px 0 8px 4px;
  border-bottom: 1px solid var(--srh-border);
  font-size: 14.5px;
  line-height: 1.55;
}
.srh-list-pros li:last-child, .srh-list-cons li:last-child { border-bottom: 0; }

/* List with emoji */
.srh-list-emoji {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 1.4em !important;
}
.srh-list-emoji li {
  padding: 10px 14px;
  background: var(--srh-bg);
  border-radius: var(--srh-radius);
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  border: 1px solid var(--srh-border);
}

/* FAQ section H3 */
.srh-editorial__content h3 {
  color: var(--srh-violet);
  margin-top: 1.4em;
  font-size: 18px;
}

/* CTA final centré */
.srh-cta-final {
  margin: 50px 0 30px;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--srh-violet) 0%, var(--srh-violet-dark) 100%);
  border-radius: var(--srh-radius-lg);
  text-align: center;
  color: #fff;
}
.srh-cta-final p {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
}
.srh-cta-final__phone {
  margin: 12px 0 !important;
  font-size: clamp(28px, 6vw, 42px) !important;
  font-weight: 800 !important;
}
.srh-cta-final__phone a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 32px;
  background: var(--srh-green);
  border-radius: var(--srh-radius);
  transition: background 0.18s ease, transform 0.15s ease;
}
.srh-cta-final__phone a:hover {
  background: var(--srh-green-dark) !important;
  transform: translateY(-2px);
}
.srh-cta-final__sub {
  font-size: 13.5px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-top: 12px !important;
}

/* ==================== DISCLAIMER ==================== */
.srh-disclaimer {
  padding: 24px 0 90px;
  background: var(--srh-bg);
  border-top: 1px solid var(--srh-border);
}
.srh-disclaimer p {
  font-size: 13px;
  color: var(--srh-text-mute);
  margin: 0;
  text-align: center;
  line-height: 1.6;
}
.srh-disclaimer strong { color: var(--srh-text); }

/* ==================== STICKY BAR ==================== */
.srh-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--srh-violet);
  padding: 10px 0;
  z-index: 998;
  box-shadow: 0 -4px 20px rgba(95, 39, 205, 0.3);
}
.srh-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.srh-sticky__pill {
  background: var(--srh-gold);
  color: var(--srh-text);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.srh-sticky__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--srh-green);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--srh-radius);
}
.srh-sticky__cta:hover { background: var(--srh-green-dark); color: #fff; }
.srh-sticky__price { color: rgba(255, 255, 255, 0.75); font-size: 13px; }

/* ==================== MODAL POPUP ==================== */
.srh-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.srh-modal[hidden] { display: none !important; }
.srh-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.srh-modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--srh-radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--srh-shadow-lg);
  animation: srhModalIn 0.2s ease;
}
@keyframes srhModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.srh-modal__close,
button.srh-modal__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--srh-border) !important;
  background: #fff !important;
  background-color: #fff !important;
  border-radius: 999px !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: var(--srh-text) !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  font-family: 'Inter', sans-serif !important;
}
.srh-modal__close:hover,
button.srh-modal__close:hover {
  background: var(--srh-violet-soft) !important;
  background-color: var(--srh-violet-soft) !important;
  color: var(--srh-violet) !important;
  border-color: var(--srh-violet-soft) !important;
}

.srh-modal__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.srh-modal__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
}
.srh-modal__head-info { flex: 1; min-width: 0; padding-right: 32px; }
.srh-modal__name {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--srh-text);
  letter-spacing: -0.3px;
}
.srh-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--srh-status);
  font-size: 12px;
  font-weight: 600;
}
.srh-modal__tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.srh-modal__tag {
  background: var(--srh-violet-soft);
  color: var(--srh-violet);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.srh-modal__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--srh-text-mute);
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.srh-modal__rating { display: inline-flex; align-items: center; gap: 4px; }
.srh-modal__star { color: var(--srh-gold); }
.srh-modal__rating strong { color: var(--srh-text); font-weight: 700; }

.srh-modal__desc {
  font-size: 14.5px;
  color: var(--srh-text-mid);
  line-height: 1.6;
  margin: 0 0 18px;
}

.srh-modal__offer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--srh-bg);
  border-radius: var(--srh-radius);
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--srh-text-mute);
}
.srh-modal__offer-pill {
  background: var(--srh-gold);
  color: var(--srh-text);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.srh-modal__offer-after { font-weight: 500; }

.srh-modal__ctas { display: flex; gap: 8px; }
.srh-modal__cta { flex: 1; }

.srh-modal__legal {
  font-size: 11.5px;
  color: var(--srh-text-mute);
  line-height: 1.5;
  text-align: center;
  margin: 16px 0 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .srh-trust__inner { gap: 12px; }
  .srh-trust__item { font-size: 13px; }
}

@media (max-width: 900px) {
  .srh-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Header CTA - visible on mobile as flex item (not absolute positioned) */
  .srh-header-cta {
    position: static !important;
    transform: none !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .srh-header-cta__sub { display: none; }
  .srh-header-cta__num { font-size: 12px; }

  /* Force header to flex row (logo left + CTA right) */
  body.page-id-20 #masthead .main-header-bar,
  .page-template-page-home #masthead .main-header-bar {
    padding-right: 16px !important;
  }
  body.page-id-20 #masthead .site-primary-header-wrap,
  .page-template-page-home #masthead .site-primary-header-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Logo compact on mobile (prevent wrap) */
  .page-template-page-home #masthead .site-title,
  .page-template-page-home #masthead .site-title a,
  body.page-id-20 #masthead .site-title,
  body.page-id-20 #masthead .site-title a {
    font-size: 15px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 55vw !important;
    display: block !important;
    word-break: keep-all !important;
  }

  /* Hero */
  .srh-hero { padding: 40px 0 0; }
  .srh-hero__inner { padding-bottom: 36px; }
  .srh-hero__title-1 { font-size: 26px; }
  .srh-hero__title-2 { font-size: 16px; }
  .srh-hero__subtitle { font-size: 15px; }
  .srh-hero__ctas { flex-direction: column; gap: 10px; }
  .srh-hero__ctas .srh-btn { width: 100%; }

  /* Trust */
  .srh-trust__inner { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
  .srh-trust__item { font-size: 13px; }

  /* Annuaire */
  .srh-annuaire { padding: 40px 0 60px; }
  .srh-card { grid-template-columns: 80px 1fr; gap: 12px; padding: 14px; }
  .srh-card__avatar { width: 80px; height: 80px; font-size: 32px; }
  .srh-card__avatar img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
  }
  .srh-card__name { font-size: 17px; }
  .srh-card__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .srh-card__actions { flex-direction: column; gap: 6px; }
  .srh-card__actions .srh-btn { width: 100%; }
  .srh-card__offer-row { font-size: 11px; }

  /* Editorial */
  .srh-editorial { padding: 40px 0; }
  .srh-editorial__content h2 { font-size: 22px; }
  .srh-editorial__content h3 { font-size: 18px; }

  /* Sticky — show offer + price on mobile */
  .srh-sticky__pill { display: inline-block; font-size: 10px; padding: 3px 8px; }
  .srh-sticky__price { display: inline; font-size: 11px; }
  .srh-sticky__cta { font-size: 15px; padding: 8px 16px; }

  /* Modal */
  .srh-modal__panel { padding: 20px; }
  .srh-modal__header { gap: 12px; }
  .srh-modal__avatar { width: 64px; height: 64px; font-size: 28px; }
  .srh-modal__name { font-size: 18px; }
}

@media (max-width: 480px) {
  .srh-container { padding: 0 16px; }
  .srh-hero__title-1 { font-size: 22px; }
  .srh-hero__title-2 { font-size: 14px; }
  .srh-eyebrow { font-size: 10px; padding: 4px 12px; }

  /* Ultra-compact logo on small screens */
  .page-template-page-home #masthead .site-title,
  .page-template-page-home #masthead .site-title a,
  body.page-id-20 #masthead .site-title,
  body.page-id-20 #masthead .site-title a {
    font-size: 13px !important;
    max-width: 50vw !important;
  }
  .srh-header-cta { padding: 6px 10px !important; font-size: 11px !important; }
  .srh-header-cta__num { font-size: 11px; }
}
