/**
 * Accueil V3 « Le réseau » (DCT-0013) — feuille unique de l'accueil (lot 1 inclus).
 * Tout est scopé sous .doctiva-home-v3, sauf : les variables de police (:root, feuille chargée sur l'accueil seulement,
 * pour que l'en-tête et le pied de page utilisent Manrope + Inter auto-hébergées) et overflow-x: clip sur html/body
 * de l'accueil (le « hidden » du thème fait de <body> un conteneur de défilement : sticky et apparitions inertes).
 * Rythme : nuit → clair → nuit (annuaire) → clair → bleu (confiance) → doux → nuit (programme) → clair → nuit.
 * Échelle typographique : 12 · 14 · 16/17 · 19 · 28-32 · 48 · 68 (84 pour les villes, 56 pour le prix).
 * Rayons : 8 petits éléments · 12 contrôles et images · 20 panneaux. Focus unique : outline 3 px #0891b2.
 * Mouvement : entrée CSS du premier écran (classe v3-js posée en tête), apparitions IntersectionObserver une seule fois
 * (classe v3-io posée par home-v3.js). Contenu visible sans JavaScript ; mouvement réduit = fondus seuls.
 */

:root {
  --font-heading: 'Doctiva Home Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Doctiva Home Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
html:has(.doctiva-home-v3),
html:has(.doctiva-home-v3) body { overflow-x: clip; }

/* ---------- Jetons ---------- */
.doctiva-home-v3 {
  --v3-night: #0f172a;
  --v3-blue: #2563eb;
  --v3-blue-strong: #1d4ed8;
  --v3-blue-pale: #eff6ff;
  --v3-cyan: #06b6d4;
  --v3-cyan-ink: #0e7490;
  --v3-cyan-night: #67e8f9;
  --v3-text: #334155;
  --v3-muted: #475569;
  --v3-on-night: #e2e8f0;
  --v3-on-night-muted: #a9b8cc;
  --v3-line: #e2e8f0;
  --v3-line-night: rgba(255, 255, 255, .14);
  --v3-soft: #f8fafc;
  --v3-field: #f1f5f9;
  --v3-focus: #0891b2;
  --v3-ease-out: cubic-bezier(.23, 1, .32, 1);
  --v3-gutter: clamp(16px, 4vw, 24px);
  --v3-pad: clamp(64px, 3rem + 4vw, 120px);
  --v3-display: 'Doctiva Home Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-family: 'Doctiva Home Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--v3-text);
  background: #fff;
}
.doctiva-home-v3 *,
.doctiva-home-v3 *::before,
.doctiva-home-v3 *::after { box-sizing: border-box; }
.doctiva-home-v3 :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
.doctiva-home-v3 :is(ul, ol) { padding: 0; list-style: none; }
.doctiva-home-v3 :is(h1, h2, h3, h4) {
  font-family: var(--v3-display);
  color: var(--v3-night);
  text-wrap: balance;
}
.doctiva-home-v3 h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3rem); font-weight: 750; line-height: 1.1; letter-spacing: -.03em; }
.doctiva-home-v3 h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.doctiva-home-v3 h4 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.doctiva-home-v3 p { text-wrap: pretty; }
.doctiva-home-v3 img { display: block; max-width: 100%; height: auto; }
.doctiva-home-v3 a { color: var(--v3-blue-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.doctiva-home-v3 :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--v3-focus);
  outline-offset: 2px;
}
.doctiva-home-v3 [id] { scroll-margin-top: 88px; }
.doctiva-home-v3 [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.doctiva-home-v3 .hs-arrow { flex: 0 0 auto; width: 18px; height: 18px; vertical-align: -4px; transition: transform .2s var(--v3-ease-out); }
.doctiva-home-v3 .v3-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.doctiva-home-v3 .v3-wrap { width: min(1152px, 100% - 2 * var(--v3-gutter)); margin-inline: auto; }
.doctiva-home-v3 .v3-section { position: relative; padding-block: var(--v3-pad); }
.doctiva-home-v3 .v3-head { max-width: 760px; margin-bottom: clamp(36px, 2rem + 2vw, 64px); }
.doctiva-home-v3 .v3-lead { max-width: 40em; margin-top: 16px; color: var(--v3-muted); font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem); line-height: 1.6; }

/* Fonds alternés */
.doctiva-home-v3 .v3-section--night { background: var(--v3-night); color: var(--v3-on-night); }
.doctiva-home-v3 .v3-section--night :is(h2, h3, h4) { color: #fff; }
.doctiva-home-v3 .v3-section--night .v3-lead { color: var(--v3-on-night-muted); }
.doctiva-home-v3 .v3-section--night a:not(.v3-btn) { color: var(--v3-cyan-night); }
.doctiva-home-v3 .v3-section--blue { background: var(--v3-blue); color: var(--v3-blue-pale); }
.doctiva-home-v3 .v3-section--blue :is(h2, h3) { color: #fff; }
.doctiva-home-v3 .v3-section--blue .v3-lead { color: var(--v3-blue-pale); }
.doctiva-home-v3 .v3-section--blue a { color: #fff; }
.doctiva-home-v3 .v3-section--blue :focus-visible { outline-color: #fff; }
.doctiva-home-v3 .v3-section--soft { background: var(--v3-soft); }

/* ---------- Boutons et liens ---------- */
.doctiva-home-v3 .v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform 120ms var(--v3-ease-out);
}
.doctiva-home-v3 .v3-btn:active { transform: scale(.97); }
.doctiva-home-v3 .v3-btn--primary { background: var(--v3-blue); color: #fff; }
.doctiva-home-v3 .v3-btn--light { background: #fff; color: var(--v3-night); }
.doctiva-home-v3 .v3-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .18s ease;
}
@media (hover: hover) {
  .doctiva-home-v3 .v3-btn--primary:hover { background: var(--v3-blue-strong); color: #fff; }
  .doctiva-home-v3 .v3-btn--light:hover { background: #e0f2fe; color: var(--v3-night); }
  .doctiva-home-v3 .v3-link:hover { text-decoration-color: currentColor; }
  .doctiva-home-v3 :is(.v3-link, .v3-btn, .v3-hero__doctor a):hover .hs-arrow { transform: translateX(3px); }
  .doctiva-home-v3 :is(.v3-link, .v3-btn)[href^="#"]:hover .hs-arrow { transform: translateY(2px); }
  .doctiva-home-v3 .v3-end .v3-btn:hover .hs-arrow { transform: translateY(-2px); }
}

/* Liste à puces commune (puce carrée cyan, un seul motif) */
.doctiva-home-v3 .v3-points li { position: relative; margin-top: 12px; padding-left: 22px; font-size: 16px; line-height: 1.55; }
.doctiva-home-v3 .v3-points li::before {
  content: '';
  position: absolute;
  top: .62em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--v3-cyan);
}
.doctiva-home-v3 .v3-note { margin-top: 16px; color: var(--v3-muted); font-size: 14px; line-height: 1.55; }

/* ============================================================
   1. Premier écran
   ============================================================ */
.doctiva-home-v3 .v3-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(36px, 1rem + 5vw, 96px) clamp(40px, 1.5rem + 4vw, 88px);
  background: var(--v3-night);
  color: var(--v3-on-night);
}
.doctiva-home-v3 .v3-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 65% at 78% 46%, rgba(37, 99, 235, .30), rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}
.doctiva-home-v3 .v3-hero__grid { position: relative; display: grid; gap: 28px; }
.doctiva-home-v3 .v3-hero__copy { position: relative; z-index: 2; min-width: 0; }
.doctiva-home-v3 .v3-hero__title {
  max-width: 11.5em;
  color: #fff;
  font-size: clamp(2.125rem, 1.15rem + 3.9vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.doctiva-home-v3 .v3-hero__lead {
  max-width: 32em;
  margin-top: clamp(14px, .5rem + 1vw, 24px);
  color: #cbd5e1;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem);
  line-height: 1.55;
}

/* Recherche (élément clé du premier écran) : panneau blanc net, ombre douce et précise, aucun flou.
   Grille stricte : spécialité | ville | bouton, puis le champ nom sur toute la largeur ; tous les champs = 60 px,
   étiquette 12 px au-dessus de la valeur. Actif : anneau #0891b2 net + légère élévation, 180 ms ease-out. */
.doctiva-home-v3 .v3-search {
  position: relative;
  z-index: 3;
  max-width: 660px;
  margin-top: clamp(20px, .75rem + 1.6vw, 36px);
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  color: var(--v3-night);
  box-shadow: 0 1px 2px rgba(2, 6, 23, .25), 0 16px 40px -18px rgba(2, 6, 23, .55);
}
.doctiva-home-v3 .v3-search:focus { outline: none; }
.doctiva-home-v3 .v3-search:focus-visible { outline: 3px solid var(--v3-focus); outline-offset: 4px; }
.doctiva-home-v3 .v3-search__title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.doctiva-home-v3 .v3-search__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.doctiva-home-v3 .v3-search__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.doctiva-home-v3 .v3-field {
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--v3-field);
  transition: background-color 180ms var(--v3-ease-out), border-color 180ms var(--v3-ease-out), box-shadow 180ms var(--v3-ease-out);
}
.doctiva-home-v3 .v3-field:focus-within {
  border-color: var(--v3-focus);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 2px var(--v3-focus), 0 10px 22px -12px rgba(15, 23, 42, .4);
}
.doctiva-home-v3 .v3-field__label {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 1;
  color: var(--v3-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}
.doctiva-home-v3 .v3-field .v3-field__control {
  display: block;
  width: 100%;
  height: 58px;
  min-height: 0;
  margin: 0;
  padding: 24px 30px 8px 14px;
  border: 0;
  border-radius: 11px;
  background-color: transparent;
  color: var(--v3-night);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  box-shadow: none;
  outline: none;
}
.doctiva-home-v3 select.v3-field__control {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.doctiva-home-v3 .v3-search__submit { gap: 8px; height: 60px; min-height: 0; padding-inline: 20px; font-size: 16px; }
.doctiva-home-v3 .v3-search__submit svg { flex: 0 0 auto; }

/* Champ nom : même case que les listes, loupe à gauche, aide courte au focus */
.doctiva-home-v3 .v3-search__name { display: none; }
.v3-js .doctiva-home-v3 .v3-search__name { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.doctiva-home-v3 .v3-field--name .v3-field__label { left: 40px; }
.doctiva-home-v3 .v3-field--name .v3-field__control { padding: 24px 14px 8px 40px; }
.doctiva-home-v3 .v3-field--name .v3-field__control::placeholder { color: #64748b; font-weight: 400; }
.doctiva-home-v3 .v3-search__icon { position: absolute; top: 50%; left: 14px; z-index: 1; color: #64748b; transform: translateY(-50%); pointer-events: none; transition: color 180ms var(--v3-ease-out); }
.doctiva-home-v3 .v3-field--name:focus-within .v3-search__icon { color: var(--v3-focus); }
.doctiva-home-v3 .v3-search__help { display: none; padding: 2px 6px 4px; color: var(--v3-muted); font-size: 12px; line-height: 1.4; }
.doctiva-home-v3 .v3-search__name:focus-within .v3-search__help,
.doctiva-home-v3 .v3-search__help.is-alert { display: block; }
.doctiva-home-v3 .v3-search__help.is-alert { color: #b45309; }

/* Suggestions (balisage d'autosuggest.js) : même rayon, ombre précise, sélection clavier visible, aucun flou */
.doctiva-home-v3 .autosuggest-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: -1px;
  left: -1px;
  z-index: 30;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 18px 36px -14px rgba(15, 23, 42, .35);
  transform-origin: top left;
  animation: v3-pop .18s var(--v3-ease-out);
}
.doctiva-home-v3 .autosuggest-group { padding: 2px 0; }
.doctiva-home-v3 .autosuggest-group + .autosuggest-group { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--v3-line); }
.doctiva-home-v3 .autosuggest-group-title { padding: 6px 10px 4px; color: var(--v3-muted); font-size: 12px; font-weight: 600; }
.doctiva-home-v3 .autosuggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--v3-night);
  font-size: 16px;
  text-decoration: none;
  transition: background-color 150ms var(--v3-ease-out), color 150ms var(--v3-ease-out);
}
.doctiva-home-v3 .autosuggest-item:hover,
.doctiva-home-v3 .autosuggest-item--active { background: var(--v3-blue-pale); color: var(--v3-blue-strong); }
.doctiva-home-v3 .autosuggest-item--active { box-shadow: inset 3px 0 0 var(--v3-focus); }
.doctiva-home-v3 .autosuggest-item:focus-visible { outline: 3px solid var(--v3-focus); outline-offset: -3px; }
.doctiva-home-v3 .autosuggest-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #64748b; }
.doctiva-home-v3 .autosuggest-item strong { color: var(--v3-blue-strong); font-weight: 700; }
.doctiva-home-v3 .autosuggest-empty { padding: 12px 10px; color: var(--v3-muted); font-size: 14px; }

.doctiva-home-v3 .v3-hero__coverage { margin-top: 22px; color: #cbd5e1; font-size: 16px; line-height: 1.6; }
.doctiva-home-v3 .v3-hero__coverage a { color: var(--v3-cyan-night); font-weight: 600; text-decoration-color: rgba(103, 232, 249, .4); }
.doctiva-home-v3 .v3-hero__doctor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  margin-top: clamp(12px, .5rem + 1.5vw, 32px);
  font-size: 16px;
}
.doctiva-home-v3 .v3-hero__doctor span { color: #fff; font-weight: 600; }
.doctiva-home-v3 .v3-hero__doctor a {
  display: inline;
  padding-block: 12px;
  color: var(--v3-cyan-night);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(103, 232, 249, .4);
}
.doctiva-home-v3 .v3-hero__doctor .hs-arrow { margin-left: 6px; }
@media (hover: hover) {
  .doctiva-home-v3 .v3-field:hover:not(:focus-within) { background: #e8eef5; }
  .doctiva-home-v3 :is(.v3-hero__coverage, .v3-hero__doctor) a:hover { text-decoration-color: currentColor; }
}

/* Illustration finale : carte du Maroc entier (transparente), sans légende (choix de Nabil). À droite sur ordinateur,
   sous la recherche sur mobile. Jamais rognée : aucune marge négative côté sud, aucun object-fit ; masque d'entrée terminé = carte entière. */
.doctiva-home-v3 .v3-hero__art { position: relative; z-index: 1; min-width: 0; margin: 8px 0 0; }
.doctiva-home-v3 .v3-hero__img { width: 100%; height: auto; }

/* ============================================================
   2. Trois services : illustration 4:3 en tête (porcelaine + cyan), titre, phrase, lien ; reliés par le motif réseau
   ============================================================ */
.doctiva-home-v3 .v3-services__list { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.doctiva-home-v3 .v3-service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 22px;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 70%);
}
.doctiva-home-v3 .v3-service__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}
.doctiva-home-v3 .v3-service__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s var(--v3-ease-out);
}
.doctiva-home-v3 .v3-service__name { margin: 18px 10px 0; font-size: clamp(1.5rem, 1.3rem + .6vw, 1.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.doctiva-home-v3 .v3-service__text { flex: 1; margin: 8px 10px 0; color: var(--v3-muted); font-size: 16px; line-height: 1.55; }
.doctiva-home-v3 .v3-service .v3-link { align-self: flex-start; margin: 6px 10px 0; }
@media (hover: hover) {
  .doctiva-home-v3 .v3-service:hover .v3-service__art img { transform: translateY(-6px); }
}

/* ============================================================
   3. Annuaire par ville (fond doux après le programme nuit, villes en grand)
   ============================================================ */
.doctiva-home-v3 .v3-dir__cities { border-top: 1px solid var(--v3-line); }
.doctiva-home-v3 .v3-city {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-block: clamp(22px, 1rem + 1.2vw, 36px);
  border-bottom: 1px solid var(--v3-line);
}
.doctiva-home-v3 .v3-city__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 8px; }
.doctiva-home-v3 .v3-city__name { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.doctiva-home-v3 .v3-dir .v3-city__name a {
  display: inline-block;
  padding-bottom: .08em;
  color: var(--v3-night);
  text-decoration: none;
  background-image: linear-gradient(var(--v3-cyan), var(--v3-cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  transition: color .2s ease, background-size .35s var(--v3-ease-out);
}
.doctiva-home-v3 .v3-city__count { color: var(--v3-muted); font-size: 16px; font-weight: 500; }
.doctiva-home-v3 .v3-city__specs { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.doctiva-home-v3 .v3-dir a.v3-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--v3-night);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform 120ms var(--v3-ease-out);
}
.doctiva-home-v3 .v3-chip__n { color: var(--v3-cyan-ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.doctiva-home-v3 .v3-chip:active { transform: scale(.97); }
.doctiva-home-v3 .v3-dir__all { margin-top: 28px; }
@media (hover: hover) {
  .doctiva-home-v3 .v3-dir .v3-city__name a:hover { color: var(--v3-blue-strong); background-size: 100% 3px; }
  .doctiva-home-v3 .v3-dir a.v3-chip:hover { border-color: var(--v3-cyan); background: #ecfeff; color: var(--v3-night); }
}

/* ============================================================
   4. Profils (cartes typographiques, une seule teinte d'initiales)
   ============================================================ */
.doctiva-home-v3 .v3-profiles__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.doctiva-home-v3 .v3-profile {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "ini name" "ini meta" "ini badge" "ini cta";
  align-content: start;
  column-gap: 16px;
  padding: 22px;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  background: #fff;
  transition: border-color .2s ease, transform .25s var(--v3-ease-out), box-shadow .25s ease;
}
.doctiva-home-v3 .v3-profile__initials {
  grid-area: ini;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--v3-blue-pale);
  color: var(--v3-blue-strong);
  font-family: var(--v3-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}
.doctiva-home-v3 .v3-profile__name { grid-area: name; font-size: 19px; }
.doctiva-home-v3 .v3-profile__link { color: var(--v3-night); text-decoration: none; }
.doctiva-home-v3 .v3-profile__link::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.doctiva-home-v3 .v3-profile__link:focus-visible { outline: none; }
.doctiva-home-v3 .v3-profile__link:focus-visible::after { outline: 3px solid var(--v3-focus); outline-offset: 2px; }
.doctiva-home-v3 .v3-profile__meta { grid-area: meta; margin-top: 4px; color: var(--v3-muted); font-size: 16px; }
.doctiva-home-v3 .v3-profile__verified { grid-area: badge; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--v3-cyan-ink); font-size: 14px; font-weight: 600; }
.doctiva-home-v3 .v3-profile__verified svg { color: var(--v3-focus); }
.doctiva-home-v3 .v3-profile__cta { grid-area: cta; display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--v3-blue-strong); font-size: 16px; font-weight: 600; }
.doctiva-home-v3 .v3-profiles__more { margin-top: 24px; }
@media (hover: hover) {
  .doctiva-home-v3 .v3-profile:hover { border-color: #93c5fd; transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(29, 78, 216, .45); }
  .doctiva-home-v3 .v3-profile:hover .hs-arrow { transform: translateX(3px); }
}

/* ============================================================
   5. Confiance (aplat bleu)
   ============================================================ */
.doctiva-home-v3 .v3-trust__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
.doctiva-home-v3 .v3-trust__item { padding-block: 22px 26px; border-top: 1px solid rgba(255, 255, 255, .3); }
.doctiva-home-v3 .v3-trust__item p { margin-top: 8px; font-size: 16px; line-height: 1.6; }
.doctiva-home-v3 .v3-trust__item .v3-link { margin-top: 6px; text-decoration-color: rgba(255, 255, 255, .5); }

/* ============================================================
   6. Cabinets : Doctiva Pro (capture lisible pleine largeur) et Doctiva Media
   ============================================================ */
.doctiva-home-v3 .v3-clinic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.doctiva-home-v3 .v3-clinic + .v3-clinic { margin-top: clamp(56px, 2rem + 4vw, 104px); }
.doctiva-home-v3 .v3-clinic:focus { outline: none; }
.doctiva-home-v3 .v3-clinic h3 { font-size: clamp(1.75rem, 1.5rem + .6vw, 2rem); font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.doctiva-home-v3 .v3-clinic .v3-points { margin-top: 12px; }
.doctiva-home-v3 .v3-stage { min-width: 0; }
.doctiva-home-v3 .v3-stage__screen { padding: clamp(16px, .5rem + 2.2vw, 40px); border-radius: 20px; background: var(--v3-blue); }
.doctiva-home-v3 .v3-stage--site .v3-stage__screen { background: var(--v3-blue-pale); }
.doctiva-home-v3 .v3-stage img { border-radius: 12px; box-shadow: 0 24px 48px -16px rgba(2, 6, 23, .45); }
.doctiva-home-v3 .v3-stage figcaption { margin-top: 10px; color: var(--v3-muted); font-size: 14px; line-height: 1.5; }
.doctiva-home-v3 .v3-stage__screen:focus-visible { outline: 3px solid var(--v3-focus); outline-offset: 2px; }

/* ============================================================
   7. Programme et formulaire (nuit)
   ============================================================ */
.doctiva-home-v3 .v3-program__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.doctiva-home-v3 .v3-offer,
.doctiva-home-v3 .v3-contact {
  min-width: 0;
  padding: clamp(22px, 1rem + 1.6vw, 40px);
  border-radius: 20px;
  background: #fff;
  color: var(--v3-text);
}
.doctiva-home-v3 .v3-contact { background: var(--v3-soft); }
.doctiva-home-v3 .v3-program :is(.v3-offer, .v3-contact) :is(h3, h4) { color: var(--v3-night); }
.doctiva-home-v3 .v3-program :is(.v3-offer, .v3-contact) a:not(.v3-btn) { color: var(--v3-blue-strong); }
.doctiva-home-v3 .v3-offer__top { display: grid; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--v3-line); }
.doctiva-home-v3 .v3-offer__name { font-size: clamp(1.75rem, 1.5rem + .6vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.doctiva-home-v3 .v3-offer__sub { margin-top: 4px; color: var(--v3-muted); font-size: 16px; line-height: 1.5; }
.doctiva-home-v3 .v3-offer__total { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.doctiva-home-v3 .v3-offer__amount {
  color: var(--v3-night);
  font-family: var(--v3-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.doctiva-home-v3 .v3-offer__total-label { color: var(--v3-night); font-size: 19px; font-weight: 600; }
/* Offre de fin d'année : étiquette sobre, prix normal barré discret, nouveau total en avant */
.doctiva-home-v3 .v3-offer__promo { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 8px; background: var(--v3-blue-pale); color: var(--v3-blue-strong); font-size: 14px; font-weight: 600; line-height: 1.4; }
.doctiva-home-v3 .v3-offer__regular { color: #64748b; font-size: 19px; font-weight: 500; white-space: nowrap; text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.doctiva-home-v3 .v3-offer__until { margin-top: 4px; color: var(--v3-text); font-size: 14px; }
.doctiva-home-v3 .v3-offer__installments { margin-top: 8px; color: var(--v3-text); font-size: 16px; }
.doctiva-home-v3 .v3-offer__note { margin-top: 4px; color: var(--v3-muted); font-size: 14px; }
.doctiva-home-v3 .v3-offer__action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 22px; border-bottom: 1px solid var(--v3-line); }
.doctiva-home-v3 .v3-offer__action p { flex: 1 1 220px; color: var(--v3-muted); font-size: 14px; line-height: 1.5; }
.doctiva-home-v3 .v3-offer__group { padding-top: 18px; }
.doctiva-home-v3 .v3-offer__group summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.doctiva-home-v3 .v3-offer__group summary::-webkit-details-marker { display: none; }
.doctiva-home-v3 .v3-offer__group h4 span { display: block; margin-top: 2px; color: var(--v3-muted); font-family: 'Doctiva Home Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500; }
.doctiva-home-v3 .v3-offer__group ul { margin-top: 8px; }
.doctiva-home-v3 .v3-offer__group li { position: relative; padding: 6px 0 6px 22px; font-size: 16px; line-height: 1.5; }
.doctiva-home-v3 .v3-offer__group li::before { content: ''; position: absolute; top: 14px; left: 2px; width: 8px; height: 8px; border-radius: 2px; background: var(--v3-cyan); }
.doctiva-home-v3 .v3-offer__group strong { display: block; color: var(--v3-night); font-weight: 650; }
.doctiva-home-v3 .v3-offer__steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.doctiva-home-v3 .v3-offer__steps span { padding: 6px 10px; border-radius: 8px; background: var(--v3-blue-pale); color: var(--v3-night); font-size: 14px; }
.doctiva-home-v3 .v3-offer__steps strong { color: var(--v3-blue-strong); font-weight: 700; }
.doctiva-home-v3 .v3-offer__small { margin-top: 12px; color: var(--v3-muted); font-size: 14px; line-height: 1.55; }
.doctiva-home-v3 .v3-offer__small strong { color: var(--v3-night); }

/* Divulgations (details/summary) : un seul chevron */
.doctiva-home-v3 .v3-disclosure { margin-top: 16px; border-top: 1px solid var(--v3-line); }
.doctiva-home-v3 .v3-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  color: var(--v3-night);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.doctiva-home-v3 .v3-disclosure summary::-webkit-details-marker { display: none; }
.doctiva-home-v3 :is(.v3-disclosure, .v3-offer__group) > summary::after,
.doctiva-home-v3 .v3-faq__icon {
  content: '';
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s var(--v3-ease-out);
}
.doctiva-home-v3 .v3-offer__group > summary::after { margin-top: 6px; color: var(--v3-muted); }
.doctiva-home-v3 details[open] > summary::after,
.doctiva-home-v3 details[open] .v3-faq__icon { transform: translateY(2px) rotate(-135deg); }
.doctiva-home-v3 details[open] > :not(summary) { animation: v3-drop .3s var(--v3-ease-out); }
.doctiva-home-v3 .v3-disclosure .v3-points { padding-bottom: 8px; }
.doctiva-home-v3 .v3-disclosure--night { margin-top: 28px; border-top-color: var(--v3-line-night); border-bottom: 1px solid var(--v3-line-night); }
.doctiva-home-v3 .v3-disclosure--night summary { color: #fff; }
.doctiva-home-v3 .v3-program__faq dl { display: grid; gap: 4px; max-width: 820px; padding-bottom: 20px; }
.doctiva-home-v3 .v3-program__faq dt { margin-top: 14px; color: #fff; font-weight: 600; }
.doctiva-home-v3 .v3-program__faq dd { color: var(--v3-on-night-muted); font-size: 16px; }

/* Formulaire (Doctiva_Lead_Medecin::render_form, balisage inchangé) */
.doctiva-home-v3 .v3-contact:focus { outline: none; }
.doctiva-home-v3 .v3-contact h3 { font-size: clamp(1.75rem, 1.5rem + .6vw, 2rem); font-weight: 750; }
.doctiva-home-v3 .v3-contact__steps { margin-top: 6px; color: var(--v3-muted); font-size: 14px; line-height: 1.5; }
.doctiva-home-v3 .v3-contact__intro { margin-top: 6px; color: var(--v3-text); font-size: 16px; line-height: 1.5; }
.doctiva-home-v3 .lead-form { position: relative; margin: 16px 0 0; }
.doctiva-home-v3 :is(.lead-form, .lead-form-success)[hidden] { display: none; }
.doctiva-home-v3 .lead-form__field { min-width: 0; margin-bottom: 12px; }
.doctiva-home-v3 .lead-form__label { display: block; margin-bottom: 4px; color: var(--v3-night); font-size: 14px; font-weight: 600; line-height: 1.5; }
.doctiva-home-v3 .lead-form__opt { color: var(--v3-muted); font-weight: 400; }
.doctiva-home-v3 :is(.lead-form__input, .lead-form__select, .lead-form__textarea) {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #94a3b8;
  border-radius: 12px;
  background-color: #fff;
  color: var(--v3-night);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .18s ease;
}
.doctiva-home-v3 .lead-form__select {
  padding-right: 40px;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.doctiva-home-v3 .lead-form__textarea { min-height: 76px; resize: vertical; }
.doctiva-home-v3 :is(.lead-form__input, .lead-form__textarea)::placeholder { color: #64748b; }
.doctiva-home-v3 :is(.lead-form__input, .lead-form__select, .lead-form__textarea):focus { border-color: var(--v3-blue); box-shadow: none; }
.doctiva-home-v3 .lead-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.doctiva-home-v3 .lead-form__help { margin-top: 4px; color: var(--v3-muted); font-size: 14px; line-height: 1.5; }
.doctiva-home-v3 :is(.lead-form__input--error, .lead-form__select--error) { border-color: #b91c1c !important; }
.doctiva-home-v3 .lead-form__error { margin-top: 6px; color: #b91c1c; font-size: 14px; line-height: 1.5; }
.doctiva-home-v3 .lead-form__error--global { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.doctiva-home-v3 .lead-form__patient { margin: 0 0 12px; color: var(--v3-muted); font-size: 14px; line-height: 1.5; }
.doctiva-home-v3 .lead-form__submit {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--v3-blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .18s ease, transform 120ms var(--v3-ease-out);
}
.doctiva-home-v3 .lead-form__submit:active { transform: scale(.97); }
.doctiva-home-v3 .lead-form__submit:disabled { opacity: .7; cursor: progress; }
.doctiva-home-v3 .lead-form__legal { margin: 10px 0 0; color: var(--v3-muted); font-size: 12px; line-height: 1.6; }
.doctiva-home-v3 .lead-form__legal a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-weight: 600; }
.doctiva-home-v3 .lead-form__legal .hs-arrow { width: 16px; height: 16px; }
.doctiva-home-v3 .lead-form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 18px; padding: 20px 0 4px; }
.doctiva-home-v3 .lead-form-success__icon { color: var(--v3-blue); }
.doctiva-home-v3 .lead-form-success__title { color: var(--v3-night); font-family: var(--v3-display); font-size: 19px; font-weight: 700; line-height: 1.3; }
.doctiva-home-v3 .lead-form-success__text { color: var(--v3-text); font-size: 16px; }
@media (hover: hover) {
  .doctiva-home-v3 .lead-form__submit:hover { background: var(--v3-blue-strong); color: #fff; }
}

/* ============================================================
   8. FAQ
   ============================================================ */
.doctiva-home-v3 .v3-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.doctiva-home-v3 .v3-faq__list { border-top: 1px solid var(--v3-line); }
.doctiva-home-v3 .v3-faq__item { border-bottom: 1px solid var(--v3-line); }
.doctiva-home-v3 .v3-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 14px;
  color: var(--v3-night);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color .18s ease;
}
.doctiva-home-v3 .v3-faq__item summary::-webkit-details-marker { display: none; }
.doctiva-home-v3 .v3-faq__icon { display: block; color: var(--v3-blue-strong); }
.doctiva-home-v3 .v3-faq__item p { max-width: 40em; padding-bottom: 22px; color: var(--v3-muted); font-size: 16px; line-height: 1.65; }
@media (hover: hover) {
  .doctiva-home-v3 .v3-faq__item summary:hover { color: var(--v3-blue-strong); }
}

/* ============================================================
   9. Conclusion (nuit, symbole en grand, filet de raccord avec le pied de page)
   ============================================================ */
.doctiva-home-v3 .v3-end {
  overflow: clip;
  border-bottom: 1px solid var(--v3-line-night);
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 30%, rgba(37, 99, 235, .25), rgba(37, 99, 235, 0) 70%),
    var(--v3-night);
}
.doctiva-home-v3 .v3-end__mark {
  display: block;
  width: clamp(112px, 6rem + 6vw, 184px);
  aspect-ratio: 303 / 349;
  margin: 0 auto clamp(28px, 1rem + 2vw, 44px);
  background: var(--v3-blue);
  -webkit-mask: url('../images/home-v3/doctiva-symbole-masque.webp') center / contain no-repeat;
  mask: url('../images/home-v3/doctiva-symbole-masque.webp') center / contain no-repeat;
}
.doctiva-home-v3 .v3-end h2 { max-width: 16em; margin-inline: auto; }
.doctiva-home-v3 .v3-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ============================================================
   Barre cabinets mobile (< 900 px, JS uniquement, jamais .cta-sticky)
   ============================================================ */
.doctiva-home-v3 .v3-mobilebar[hidden] { display: none; }
.doctiva-home-v3 .v3-mobilebar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--v3-gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--v3-line-night);
  background: rgba(15, 23, 42, .97);
  color: #fff;
  visibility: hidden;
  transform: translateY(110%);
  transition: transform .2s var(--v3-ease-out), visibility 0s linear .2s;
}
.doctiva-home-v3 .v3-mobilebar.is-visible { visibility: visible; transform: none; transition: transform .3s var(--v3-ease-out), visibility 0s; }
.doctiva-home-v3 .v3-mobilebar__context { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.doctiva-home-v3 .v3-mobilebar__button { flex: 0 0 auto; min-height: 46px; padding: 10px 16px; font-size: 16px; white-space: nowrap; }

/* ============================================================
   Mises en page larges
   ============================================================ */
@media (min-width: 600px) {
  .doctiva-home-v3 .v3-services__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .doctiva-home-v3 .v3-search__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doctiva-home-v3 .v3-search__submit { grid-column: 1 / -1; }
  .doctiva-home-v3 .v3-profiles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctiva-home-v3 .v3-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Nombre impair de points (5) : le dernier occupe toute la largeur sur deux colonnes */
  .doctiva-home-v3 .v3-trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .doctiva-home-v3 .lead-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Recherche ≥ 760 px : rangée nom sur la même grille que spécialité / ville / bouton (bords alignés) */
@media (min-width: 760px) {
  .doctiva-home-v3 .v3-search__form { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) auto; }
  .doctiva-home-v3 .v3-search__row { display: contents; }
  .doctiva-home-v3 .v3-search__submit { grid-column: auto; }
  .v3-js .doctiva-home-v3 .v3-search__name { display: contents; }
  .doctiva-home-v3 .v3-field--name,
  .doctiva-home-v3 .v3-search__help { grid-column: 1 / -1; }
  .doctiva-home-v3 .v3-city { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; }
  .doctiva-home-v3 .v3-city__head { flex-direction: column; align-items: flex-start; row-gap: 12px; }
}

@media (min-width: 900px) {
  .doctiva-home-v3 [id] { scroll-margin-top: 96px; }
  .doctiva-home-v3 .v3-head--split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: 48px; max-width: none; }
  .doctiva-home-v3 .v3-head--split .v3-lead { margin-top: 0; }
  .doctiva-home-v3 .v3-hero { display: flex; align-items: center; min-height: min(calc(100svh - 72px), 860px); }
  .doctiva-home-v3 .v3-hero__grid { grid-template-columns: minmax(0, 580px) minmax(0, 1fr); align-items: center; column-gap: clamp(8px, 1.5vw, 24px); }
  /* Carte à droite de la colonne de recherche (jamais sous le panneau : la pointe sud reste visible), jusqu'au bord droit. */
  .doctiva-home-v3 .v3-hero__art { margin: 0 calc((min(1152px, 100vw - 2 * var(--v3-gutter)) - 100vw) / 2 + 24px) 0 0; }
  .doctiva-home-v3 .v3-services__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); padding-top: 22px; }
  /* Motif réseau : un trait cyan fin relie les trois services, un point par service */
  .doctiva-home-v3 .v3-services__list::before { content: ''; position: absolute; top: -1px; right: 0; left: 24px; height: 1px; background: linear-gradient(90deg, rgba(6, 182, 212, .55), rgba(6, 182, 212, .35) 70%, rgba(6, 182, 212, 0)); }
  .doctiva-home-v3 .v3-service::before { content: ''; position: absolute; top: -27px; left: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--v3-cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .15); }
  .doctiva-home-v3 .v3-profiles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 5 points : 3 en haut, 2 en bas (grille de 6 pistes) */
  .doctiva-home-v3 .v3-trust__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .doctiva-home-v3 .v3-trust__item { grid-column: span 2; }
  .doctiva-home-v3 .v3-trust__item:nth-child(4):nth-last-child(2),
  .doctiva-home-v3 .v3-trust__item:nth-child(5):last-child { grid-column: span 3; }
  .doctiva-home-v3 .v3-clinic--pro .v3-clinic__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(32px, 4vw, 72px); }
  .doctiva-home-v3 .v3-clinic--pro .v3-points { margin-top: 0; }
  .doctiva-home-v3 .v3-clinic--pro .v3-points li:first-child { margin-top: 0; }
  .doctiva-home-v3 .v3-clinic--media { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 72px); }
  .doctiva-home-v3 .v3-clinic--media .v3-clinic__text { order: 2; }
  .doctiva-home-v3 .v3-program__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
  /* Formulaire à droite de l'offre : flèche vers la droite (mobile : formulaire dessous, flèche vers le bas). */
  .doctiva-home-v3 .v3-offer__action .hs-arrow { transform: rotate(-90deg); }
  .doctiva-home-v3 .v3-contact { position: sticky; top: 96px; }
  .doctiva-home-v3 .v3-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
  .doctiva-home-v3 .v3-mobilebar { display: none !important; }
}

/* Mobile : recherche visible sans défilement, carte sous la recherche, capture Pro lisible (défilement horizontal) */
@media (max-width: 599px) {
  .doctiva-home-v3 { font-size: 16px; }
  .doctiva-home-v3 .v3-search { padding: 8px; }
  .doctiva-home-v3 .v3-field .v3-field__control { min-height: 56px; padding-top: 24px; padding-bottom: 8px; }
  .doctiva-home-v3 .v3-search__icon { top: 32px; }
  .doctiva-home-v3 .v3-search__submit { min-height: 52px; }
  .doctiva-home-v3 .v3-hero__coverage { margin-top: 16px; }
  .doctiva-home-v3 .v3-hero__doctor { margin-top: 8px; }
  .doctiva-home-v3 .v3-services__list {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--v3-gutter));
    padding: 0 var(--v3-gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--v3-gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .doctiva-home-v3 .v3-service { flex: 0 0 80%; scroll-snap-align: start; }
  .doctiva-home-v3 .v3-service__name { margin-top: 14px; font-size: 1.5rem; }
  .doctiva-home-v3 .v3-profile { padding: 18px; }
  .doctiva-home-v3 .v3-stage--pro .v3-stage__screen { overflow-x: auto; overscroll-behavior-x: contain; padding: 14px; }
  .doctiva-home-v3 .v3-stage--pro img { width: 760px; max-width: none; }
  .doctiva-home-v3 .v3-offer__action .v3-btn,
  .doctiva-home-v3 .v3-end__actions .v3-btn { width: 100%; }
}
@media (max-width: 419px) {
  .doctiva-home-v3 .v3-mobilebar__context { display: none; }
  .doctiva-home-v3 .v3-mobilebar__button { flex: 1 1 auto; }
}
@media (max-width: 359px) {
  .doctiva-home-v3 .v3-hero__lead { font-size: 16px; }
  .doctiva-home-v3 .v3-city__name { font-size: 2.25rem; }
}

/* ============================================================
   Mouvement
   ============================================================ */
@keyframes v3-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes v3-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v3-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes v3-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes v3-map-in { from { opacity: .001; -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* Entrée du premier écran (CSS seul, une fois) : titre, intro, recherche tôt, puis villes et accès médecins */
.v3-js .doctiva-home-v3 [data-v3-enter] { animation: v3-rise 560ms var(--v3-ease-out) both; }
.v3-js .doctiva-home-v3 [data-v3-enter="2"] { animation-delay: 60ms; }
.v3-js .doctiva-home-v3 [data-v3-enter="3"] { animation-delay: 90ms; }
.v3-js .doctiva-home-v3 [data-v3-enter="4"] { animation-delay: 200ms; }
.v3-js .doctiva-home-v3 [data-v3-enter="5"] { animation-delay: 260ms; }
.v3-js .doctiva-home-v3 .v3-hero::before { animation: v3-fade 900ms ease-out both; }
/* Carte : dévoilement du nord au sud (masque). Position finale 0 0 : partie opaque = 117 % de la hauteur, carte entière. */
@supports ((mask-position: 0 0) or (-webkit-mask-position: 0 0)) {
  .v3-js .doctiva-home-v3 .v3-hero__art-frame {
    -webkit-mask: linear-gradient(#000 45%, transparent 60%) 0 0 / 100% 260% no-repeat;
    mask: linear-gradient(#000 45%, transparent 60%) 0 0 / 100% 260% no-repeat;
    animation: v3-map-in 1.2s var(--v3-ease-out) .12s both;
  }
}

/* Apparitions au défilement : une fois, au temps (home-v3.js pose v3-io puis is-in), cascade plafonnée à 3 pas */
.v3-io .doctiva-home-v3 [data-v3-reveal] {
  transition: opacity .6s var(--v3-ease-out), transform .7s var(--v3-ease-out), clip-path .8s var(--v3-ease-out);
  transition-delay: calc(min(var(--v3-i, 0), 3) * 70ms);
}
.v3-io .doctiva-home-v3 [data-v3-reveal]:not(.is-in) { opacity: 0; transform: translateY(20px); }
.v3-io .doctiva-home-v3 .v3-city[data-v3-reveal]:not(.is-in) { transform: translateX(-24px); }
.v3-io .doctiva-home-v3 [data-v3-reveal="media"]:not(.is-in) { clip-path: inset(6% 4% 6% 4% round 20px); transform: scale(.97); }
/* Carrousel des services (< 600 px) : cartes hors champ horizontal jamais masquées */
@media (max-width: 599px) {
  .v3-io .doctiva-home-v3 .v3-service[data-v3-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* Mouvement réduit : fondus conservés, aucun déplacement, aucun masque */
@media (prefers-reduced-motion: reduce) {
  .doctiva-home-v3 *,
  .doctiva-home-v3 *::before,
  .doctiva-home-v3 *::after { scroll-behavior: auto !important; }
  .v3-js .doctiva-home-v3 [data-v3-enter] { animation-name: v3-fade; }
  .v3-js .doctiva-home-v3 .v3-hero__art-frame { -webkit-mask: none; mask: none; animation: v3-fade .5s ease-out both; }
  .doctiva-home-v3 .v3-service__art img { transform: none !important; transition: none; }
  .v3-io .doctiva-home-v3 [data-v3-reveal]:not(.is-in) { transform: none; clip-path: none; }
  .v3-io .doctiva-home-v3 .v3-city[data-v3-reveal]:not(.is-in) { transform: none; }
  .v3-io .doctiva-home-v3 [data-v3-reveal] { transition: opacity .5s ease-out; transition-delay: 0s; }
  .doctiva-home-v3 details[open] > :not(summary),
  .doctiva-home-v3 .autosuggest-results { animation-name: v3-fade; }
  .doctiva-home-v3 :is(.v3-btn, .v3-profile, .v3-chip, .lead-form__submit) { transform: none !important; }
  .doctiva-home-v3 .hs-arrow { transition: none; }
  .doctiva-home-v3 .v3-mobilebar { opacity: 0; transform: none; transition: opacity .2s ease, visibility 0s linear .2s; }
  .doctiva-home-v3 .v3-mobilebar.is-visible { opacity: 1; transition: opacity .2s ease, visibility 0s; }
}
@media (hover: hover) and (min-width: 900px) {
  .doctiva-home-v3 .v3-offer__action .v3-btn:hover .hs-arrow { transform: rotate(-90deg) translateY(2px); }
}
