/**
 * Doctiva Homepage Premium Styles
 * Uses design tokens from design-tokens.css
 */

/* === HERO DARK PREMIUM === */
.hero--dark {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 6vw, 48px);
  color: #fff;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(37, 99, 235, .25) 0%, transparent 60%),
    radial-gradient(900px 500px at 95% 20%, rgba(6, 182, 212, .18) 0%, transparent 65%),
    linear-gradient(180deg, #0B1220 0%, #0F172A 100%);
  /* Grille discrète */
  background-image:
    radial-gradient(1200px 600px at 10% 10%, rgba(37, 99, 235, .25) 0%, transparent 60%),
    radial-gradient(900px 500px at 95% 20%, rgba(6, 182, 212, .18) 0%, transparent 65%),
    linear-gradient(180deg, #0B1220 0%, #0F172A 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px);
  overflow: hidden;
}

.hero--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, .35) 0%, rgba(2, 6, 23, .15) 60%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero__grid { 
    grid-template-columns: 1.1fr .9fr;
  }
}

.hero__content { 
  max-width: 640px;
}

.hero__title {
  font-weight: 800;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 10px 0;
}

.hero__subtitle {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.hero__actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition, .2s ease);
  font-size: var(--fs-body);
  cursor: pointer;
}

.btn--primary {
  background: var(--brand-600, #2563EB);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--brand-500, #3B82F6);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
}

.hero__image {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__img-el {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .35);
  outline: 1px solid rgba(255, 255, 255, .6);
  outline-offset: -1px;
  object-fit: cover;
}

/* === SEARCH CARD GLASSY (overlaps hero) === */
.search-card {
  transform: translateY(-28px);
  margin-bottom: clamp(16px, 3vw, 28px);
}

.search-card__inner {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  box-shadow:
    0 12px 30px rgba(2, 6, 23, .12),
    0 1px 0 rgba(255, 255, 255, .65) inset;
  padding: clamp(12px, 2vw, 18px);
  transition: var(--transition);
}

.search-card__inner:hover {
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, .25),
    0 18px 42px rgba(2, 6, 23, .16),
    0 1px 0 rgba(255, 255, 255, .65) inset;
}

@media (max-width: 1023px) {
  .search-card {
    transform: none;
    margin-top: clamp(20px, 4vw, 32px);
    margin-bottom: clamp(20px, 4vw, 32px);
  }
}

/* === SEARCH BAR (Aligned grid) === */
.doctiva-search {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 980px) {
  .doctiva-search {
    grid-template-columns: 1.2fr .9fr .9fr .9fr .6fr;
    align-items: center;
  }
}

.doctiva-search__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  transition: var(--transition);
  min-height: 44px;
}

.doctiva-search__field:focus-within {
  outline: none;
  border-color: rgba(37, 99, 235, .6);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.doctiva-search__field svg {
  width: 20px;
  height: 20px;
  color: var(--ink-400);
  flex-shrink: 0;
}

.doctiva-search__input,
.doctiva-search__select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: var(--fs-body);
  color: var(--ink-900);
  font-family: inherit;
  padding: 0.5rem 0;
}

.doctiva-search__input::placeholder {
  color: var(--ink-400);
}

.doctiva-search__select {
  cursor: pointer;
}

.doctiva-search__button {
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
  border: none;
  padding: 0 18px;
  border-radius: 12px;
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .22);
}

.doctiva-search__button:hover {
  filter: brightness(1.06);
}

.doctiva-search__button:active {
  transform: scale(0.98);
}

/* === QUICK LINKS (Chips) === */
.doctiva-quick-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.doctiva-quick-links__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: var(--radius-md);
  color: var(--ink-600);
  text-decoration: none;
  font-size: var(--fs-meta);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
}

.doctiva-quick-links__item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-500);
}

.doctiva-quick-links__item:hover {
  color: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === INFO CARDS === */
.doctiva-cards {
  padding: clamp(20px, 4.2vw, 44px) 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
}

.doctiva-cards::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, .10), transparent);
}

.doctiva-cards__container {
  max-width: 1200px;
  margin: 0 auto;
}

.doctiva-cards__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--ink-900);
}

.doctiva-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.doctiva-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(2, 6, 23, .06);
}

.doctiva-card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.doctiva-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--bg-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.doctiva-card:hover .doctiva-card__icon {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--accent-500) 100%);
}

.doctiva-card__icon svg {
  width: 36px;
  height: 36px;
  color: var(--brand-600);
  transition: var(--transition);
}

.doctiva-card:hover .doctiva-card__icon svg {
  color: white;
}

.doctiva-card__title {
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink-900);
}

.doctiva-card__text {
  color: var(--ink-600);
  margin-bottom: 1.5rem;
  font-size: var(--fs-body);
  line-height: 1.6;
}

.doctiva-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-body);
  transition: var(--transition);
}

.doctiva-card__link:hover {
  gap: 0.75rem;
  color: var(--brand-500);
}

.doctiva-card__link svg {
  width: 16px;
  height: 16px;
}

/* === KPI SECTION === */
.doctiva-kpi {
  padding: clamp(22px, 4.8vw, 46px) 1.5rem;
  background:
    radial-gradient(550px 250px at 18% 30%, rgba(37, 99, 235, .10) 0%, transparent 70%),
    radial-gradient(550px 250px at 78% 70%, rgba(6, 182, 212, .10) 0%, transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F9FF 100%);
  position: relative;
  overflow: hidden;
}

/* Removed redundant ::before pseudo-element */

.doctiva-kpi__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.doctiva-kpi__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  text-align: center;
}

.doctiva-kpi__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doctiva-kpi__value {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--brand-600);
  line-height: 1;
}

.doctiva-kpi__label {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink-600);
  font-weight: 500;
}

/* === PRIVACY CALLOUT === */
.doctiva-callout {
  padding: clamp(22px, 4.8vw, 46px) 1.5rem;
  background: linear-gradient(180deg, #F6F9FF 0%, #FFFFFF 100%);
}

.doctiva-callout__container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.doctiva-callout__content h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.25rem;
  color: var(--ink-900);
  font-weight: 700;
}

.doctiva-callout__content p {
  color: var(--ink-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: var(--fs-body);
}

.doctiva-callout__link {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.doctiva-callout__link:hover {
  gap: 0.75rem;
  color: var(--brand-500);
}

.doctiva-callout__image {
  text-align: center;
}

.doctiva-callout__image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

.doctiva-callout__image svg {
  max-width: 100%;
  height: auto;
}

/* === PRO CTA === */
.doctiva-pro-cta {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--accent-500) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.doctiva-pro-cta::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.doctiva-pro-cta__container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.doctiva-pro-cta__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 3rem;
}

.doctiva-pro-cta__bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.doctiva-pro-cta__bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.doctiva-pro-cta__bullet svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.doctiva-pro-cta__bullet-text {
  font-size: var(--fs-body);
  line-height: 1.6;
}

.doctiva-pro-cta__button {
  display: inline-block;
  background: white;
  color: var(--brand-600);
  padding: 1.125rem 3rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 18px);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.doctiva-pro-cta__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  color: var(--brand-500);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* Hero adjustments for mobile */
  .hero--dark {
    padding: clamp(32px, 6vw, 48px) 0 clamp(32px, 6vw, 48px);
  }
  
  .hero__grid {
    gap: clamp(24px, 4vw, 32px);
  }
  
  .hero__title {
    font-size: clamp(26px, 6vw, 34px);
    margin-bottom: 12px;
  }
  
  .hero__subtitle {
    font-size: clamp(15px, 3vw, 17px);
    margin-bottom: 20px;
  }
  
  .hero__actions {
    gap: 10px;
  }
  
  .hero__image {
    margin-top: 24px;
  }
  
  .doctiva-hero {
    padding: 3rem 1.5rem;
  }
  
  .doctiva-search {
    flex-direction: column;
    padding: 1rem;
  }
  
  .doctiva-search__field {
    width: 100%;
    min-width: 100%;
  }
  
  .doctiva-search__button {
    width: 100%;
  }
  
  .doctiva-quick-links {
    gap: 0.75rem;
  }
  
  .doctiva-quick-links__item {
    padding: 0.625rem 1rem;
    font-size: 12px;
  }
  
  .doctiva-cards__grid {
    grid-template-columns: 1fr;
  }
  
  .doctiva-callout__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .doctiva-pro-cta__bullets {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .doctiva-pro-cta__bullet {
    justify-content: center;
  }
}

/* Animation for KPI (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .doctiva-kpi__value {
    animation: fadeInUp 0.6s ease-out backwards;
  }
  
  .doctiva-kpi__item:nth-child(2) .doctiva-kpi__value {
    animation-delay: 0.1s;
  }
  
  .doctiva-kpi__item:nth-child(3) .doctiva-kpi__value {
    animation-delay: 0.2s;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* === AUTOSUGGEST === */
.doctiva-search__field--text {
  position: relative;
}

.autosuggest-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
}

.autosuggest-group {
  padding: 0.5rem 0;
}

.autosuggest-group + .autosuggest-group {
  border-top: 1px solid var(--bg-100);
}

.autosuggest-group-title {
  padding: 0.5rem 1rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.autosuggest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink-900);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.autosuggest-item:hover,
.autosuggest-item--active {
  background: var(--bg-50);
  color: var(--brand-600);
}

.autosuggest-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-400);
  flex-shrink: 0;
}

.autosuggest-item:hover .autosuggest-icon,
.autosuggest-item--active .autosuggest-icon {
  color: var(--brand-600);
}

.autosuggest-item span {
  flex: 1;
  font-size: var(--fs-body);
}

.autosuggest-item strong {
  font-weight: 600;
  color: var(--brand-600);
}

.autosuggest-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-400);
  font-size: var(--fs-body);
}

/* Fix for select field widths in 3-column layout */
.doctiva-search__field--select {
  flex: 0 1 auto;
  min-width: 180px;
}

.doctiva-search__field--text {
  flex: 2;
  min-width: 240px;
}

/* === FLOW SECTIONS V2 (Clarity & Warmth) === */
/* Wrapper - même style clair pour patients & médecins */
.flow {
  padding: clamp(48px, 7vw, 72px) 0;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(37, 99, 235, .06), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(6, 182, 212, .05), transparent 55%),
    var(--bg-50);
}

.flow .container {
  max-width: 1080px;
}

/* Wrapper titre avec audience marker */
.flow__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.6vw, 24px);
  text-align: center;
}

/* Pastille icône + label (audience) */
.audience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.audience img {
  width: 18px;
  height: 18px;
  filter: var(--audience-icon-filter, none);
}

.audience__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-700);
}

/* Teintes légères par audience */
.audience--patients {
  background: linear-gradient(0deg, rgba(37, 99, 235, .06), rgba(37, 99, 235, .06)), #fff;
  border-color: rgba(37, 99, 235, .18);
}

.audience--patients img {
  filter: opacity(0.85) saturate(1.1);
}

.audience--medecins {
  background: linear-gradient(0deg, rgba(6, 182, 212, .06), rgba(6, 182, 212, .06)), #fff;
  border-color: rgba(6, 182, 212, .18);
}

.audience--medecins img {
  filter: opacity(0.85) saturate(1.1);
}

/* Option : inline avec le H2 */
.flow__head--inline {
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.flow__head--inline .section-title {
  margin: 0;
}

/* Titre section */
.flow .section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  text-align: center;
  margin: 0;
  max-width: 900px;
  line-height: 1.3;
}

/* Track (grid 3 colonnes) */
.flow__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
  margin: 0 auto clamp(20px, 3vw, 28px);
  padding: 0;
  list-style: none;
}

/* Connecteurs entre cartes (desktop uniquement) */
.flow__connector {
  display: none;
}

@media (min-width: 901px) {
  .flow__track {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: clamp(12px, 2vw, 16px);
    align-items: center;
  }
  
  .flow__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 32px;
    height: auto;
    list-style: none;
  }
  
  .flow__connector svg {
    width: 28px;
    height: 28px;
    color: var(--brand-600);
    opacity: 0.4;
    flex-shrink: 0;
  }
}

/* Cartes step */
.flow__step {
  position: relative;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 2.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  list-style: none;
}

/* Icône XL + halo */
.flow__icon {
  position: relative;
  width: var(--icon-xl);
  height: var(--icon-xl);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.flow__icon .ico {
  width: 100%;
  height: 100%;
  color: var(--brand-600);
  position: relative;
  z-index: 2;
}

.flow__icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: var(--halo-bg);
  filter: blur(6px);
  z-index: 0;
}

/* Titres & textes ultra-courts */
.flow__title {
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 650;
  color: var(--ink-900);
  margin: 6px 0 0;
  line-height: 1.3;
}

.flow__text {
  color: var(--ink-600);
  font-size: var(--fs-body);
  line-height: 1.35;
  margin: 0;
}

/* Hover subtil carte */
.flow__step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  transition: all 0.22s ease;
}

/* Responsive mobile (<900px) */
@media (max-width: 900px) {
  .flow {
    padding: clamp(40px, 6vw, 56px) 0;
  }
  
  .flow .section-title {
    font-size: clamp(22px, 5vw, 26px);
    margin-bottom: 24px;
  }
  
  .flow__track {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .flow__step {
    padding: clamp(16px, 3.5vw, 20px);
  }
}

/* Animation (respects prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .flow__step {
    animation: flowFadeUp 0.45s ease-out backwards;
  }
  
  .flow__step:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .flow__step:nth-child(3) {
    animation-delay: 0.2s;
  }
  
  .flow__step:nth-child(5) {
    animation-delay: 0.3s;
  }
  
  @keyframes flowFadeUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow__step:hover {
    transform: none;
  }
}

/* === HERO TRUST BADGES (Style paiement sécurisé) === */
.hero-trust {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Cacher scrollbar */
.hero-trust::-webkit-scrollbar,
#hero-trust::-webkit-scrollbar { 
  display: none; 
}

/* Conteneur des badges */
.hero-trust__container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-right: 0.25rem;
}

/* Style badge "paiement sécurisé" : sans bordure, icônes avec cercle gold */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  background: transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  pointer-events: none;
}

/* White circle wrapper */
.trust-badge__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Icon inside circle */
.trust-badge__icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Variante gold (premier badge uniquement) */
.trust-badge--gold {
  color: rgba(255, 255, 255, 1);
  position: relative;
  overflow: hidden;
}

/* Reflet "sheen" unique au chargement */
.trust-badge--gold::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  top: 0;
  height: 220%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: translateX(-130%) rotate(10deg);
  opacity: 0;
  pointer-events: none;
  animation: trustSheen 1100ms ease-out 350ms 1 both;
}

@media (prefers-reduced-motion: reduce) {
  .trust-badge--gold::after {
    animation: none;
  }
}

@keyframes trustSheen {
  0% {
    transform: translateX(-130%) rotate(10deg);
    opacity: 0;
  }
  30% {
    opacity: 0.32;
  }
  100% {
    transform: translateX(140%) rotate(10deg);
    opacity: 0;
  }
}

/* === SEARCH PREMIUM ELEVATION & QUICKBAR === */

/* Variables premium */
:root {
  --brand: #2563EB;
  --accent: #06B6D4;
  --ring: #E9EEF5;
  --wash: #F6F9FF;
}

/* Conteneur de la barre : bordure plus douce + ombre basse plus longue */
.search-elevated {
  border: 1px solid #E9EEF5;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(2, 6, 23, 0.05),
    0 26px 60px -20px rgba(2, 6, 23, 0.24);
}

/* Harmoniser l'image du hero avec le même rayon */
.hero__image {
  border-radius: 20px !important;
  overflow: hidden;
}

.hero__img-el {
  border-radius: 20px;
}

/* Inputs & selects : trait fin + focus chic et accessible */
.search-elevated input,
.search-elevated select {
  border: 1px solid var(--ring);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.search-elevated input:focus,
.search-elevated select:focus {
  border-color: #D8E6FF;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

/* Alléger la ligne de recherche : cacher les icônes de spécialité/quartiers */
.select--specialty svg,
.select--district svg {
  display: none !important;
}

/* Garder l'icône de la ville (pin) */
.select--city svg {
  display: block;
}

/* Ligne d'accès rapide (liens fantômes) */
.search-quickbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Chips : texte seul, plus léger et sobre */
.quick-chips .chip {
  padding: 6px 10px;
  border-radius: 9999px;
  background: #F6F9FF;
  border: 1px solid #E9EEF5;
  color: #334155;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Pas d'icônes ni puces */
.quick-chips .chip svg,
.quick-chips .chip .dot {
  display: none !important;
}

.quick-chips .chip:hover {
  background: #F1F6FF;
  border-color: #D8E6FF;
}

/* Quick links wrapper */
.quick-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Liens fantômes à droite : très discrets + chevron au hover */
.quick-links a {
  color: #7B8A9A;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-links a:hover {
  color: #2563EB;
  text-decoration: underline;
}

.quick-links a:hover::after {
  content: " →";
}

/* Séparateur · */
.quick-links .sep {
  color: #CFD8E3;
  user-select: none;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .search-quickbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .quick-chips {
    width: 100%;
  }

  .quick-links {
    width: 100%;
  }

  .chip {
    font-size: 12px;
    padding: 5px 10px;
  }

  .quick-links a {
    font-size: 12px;
  }
}

/* ===== CORRECTIONS MOBILE PREMIUM ===== */
@media (max-width: 640px) {
  /* Hero: titres & badges plus compacts */
  .hero h1,
  .hero .hero__title {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  
  .hero p,
  .hero .hero__subtitle {
    font-size: 14px;
    color: #E5EDF7;
    margin-top: 6px;
  }
  
  /* Badges hero: grille 3 colonnes */
  .hero-trust,
  #hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }
  
  .hero-trust__container {
    display: contents;
  }
  
  .trust-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 500;
    background: transparent;
    border: none;
    flex-direction: column;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .trust-badge__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    flex-shrink: 0;
  }
  
  .trust-badge__icon {
    width: 18px;
    height: 18px;
    display: block;
  }
  
  .trust-badge__icon path {
    stroke: #FFFFFF;
    stroke-width: 2.5;
  }
  
  .hero__image {
    max-width: 88vw;
    border-radius: 16px !important;
    margin: 10px auto 0;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18);
  }
  
  .hero__img-el {
    border-radius: 16px;
  }
  
  /* Barre de recherche: relief et ergonomie */
  .search-elevated {
    border-radius: 16px;
    border: 1px solid #E9EEF5;
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.55), 
      0 18px 42px -18px rgba(2, 6, 23, 0.22);
    padding-bottom: 8px;
  }
  
  .search-elevated input,
  .search-elevated select,
  .search-elevated button,
  .doctiva-search__input,
  .doctiva-search__select,
  .doctiva-search__button {
    height: 48px;
  }
  
  .search-elevated input:focus,
  .search-elevated select:focus,
  .doctiva-search__input:focus,
  .doctiva-search__select:focus {
    outline: none;
    border-color: #D8E6FF;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
  }
  
  /* Chips: une seule ligne en scroll horizontal + snap */
  .quick-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 2px;
    margin: 0;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
  }
  
  .quick-chips::-webkit-scrollbar {
    display: none;
  }
  
  .quick-chips .chip {
    white-space: nowrap;
    scroll-snap-align: start;
    background: #F6F9FF;
    border: 1px solid #E9EEF5;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 9999px;
    flex-shrink: 0;
  }
  
  .quick-chips .chip svg,
  .quick-chips .chip .dot {
    display: none !important;
  }
  
  /* Liens fantômes (droite) : réduire la présence */
  .quick-links {
    justify-content: flex-end;
    gap: 10px;
    padding: 6px 4px 2px;
  }
  
  .quick-links a {
    color: #90A3B9;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
  }
  
  .quick-links a:hover {
    color: #2563EB;
    text-decoration: underline;
  }
  
  .quick-links .sep {
    color: #CFD8E3;
  }
  
  /* Option: sur très petits écrans, masquer le 2e lien */
  @media (max-width: 380px) {
    .quick-links a:last-child,
    .quick-links .sep {
      display: none;
    }
  }
  
  /* Section CTA médecins: réduire la hauteur */
  .doctiva-pro-cta,
  .cta-medecins {
    padding: 24px 16px;
  }
  
  .doctiva-pro-cta__title,
  .cta-title {
    font-size: 18px;
  }
  
  .doctiva-pro-cta__bullets,
  .cta-grid {
    gap: 10px;
  }
  
  .doctiva-pro-cta__button,
  .cta-btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
  }
  
  /* Cards: espacement et ombre subtile */
  .card {
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px -16px rgba(2, 6, 23, 0.16);
  }
  
  .card h3 {
    font-size: 15px;
  }
  
  .card p {
    font-size: 13px;
    color: #5B6B7C;
  }
}