/* ==========================================================================
   ANGEPHARMA — feuille de style du site vitrine
   Complète Bootstrap 5.3 : tokens de marque, typographie, composants
   visuels et métier. La structure et le responsive restent Bootstrap.
   ========================================================================== */

/* ---------- 1. Tokens -------------- */
:root {
  --ap-violet: #642A87;
  --ap-violet-700: #4F1F6C;
  --ap-violet-light: #9B63C5;
  --ap-violet-50: #F7F2FB;
  --ap-violet-100: #EEE4F6;
  --ap-green: #55B747;
  --ap-green-700: #3E9A33;
  --ap-green-50: #EEF8EC;
  --ap-ink: #172033;
  --ap-muted: #5A6477;
  --ap-gray: #F5F7FA;
  --ap-line: #E6E9F0;
  --ap-white: #FFFFFF;

  --ap-radius: 14px;
  --ap-radius-lg: 22px;
  --ap-shadow-sm: 0 1px 2px rgba(23, 32, 51, .04), 0 2px 8px rgba(23, 32, 51, .04);
  --ap-shadow: 0 2px 4px rgba(23, 32, 51, .03), 0 12px 32px -12px rgba(23, 32, 51, .12);
  --ap-shadow-lg: 0 30px 60px -24px rgba(56, 24, 82, .28);
  --ap-ease: cubic-bezier(.22, .61, .36, 1);
  --ap-header-h: 76px;

  --ap-font-title: "Poppins", system-ui, sans-serif;
  --ap-font-text: "Inter", system-ui, sans-serif;

  /* Bootstrap */
  --bs-body-font-family: var(--ap-font-text);
  --bs-body-color: var(--ap-ink);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.65;
  --bs-secondary-color: var(--ap-muted);
  --bs-border-color: var(--ap-line);
  --bs-link-color: var(--ap-violet);
  --bs-link-color-rgb: 100, 42, 135;
  --bs-link-hover-color: var(--ap-violet-700);
  --bs-link-hover-color-rgb: 79, 31, 108;
  --bs-primary: #642A87;
  --bs-primary-rgb: 100, 42, 135;
  --bs-success: #55B747;
  --bs-success-rgb: 85, 183, 71;
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
  --bs-focus-ring-color: rgba(100, 42, 135, .28);
}

/* ---------- 2. Base ---------- */
html { scroll-padding-top: calc(var(--ap-header-h) + 16px); }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .font-title {
  font-family: var(--ap-font-title);
  color: var(--ap-ink);
  letter-spacing: -.02em;
  font-weight: 600;
}
h1 { font-weight: 700; letter-spacing: -.035em; }
.text-violet { color: var(--ap-violet) !important; }
.text-green { color: var(--ap-green-700) !important; }
.text-muted, .text-secondary { color: var(--ap-muted) !important; }
.bg-soft { background: var(--ap-gray); }
.bg-violet-soft { background: var(--ap-violet-50); }
.lead { font-size: 1.125rem; color: var(--ap-muted); line-height: 1.7; }
a { text-underline-offset: 3px; }
::selection { background: var(--ap-violet); color: #fff; }

:focus-visible { outline: 3px solid rgba(100, 42, 135, .45); outline-offset: 2px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--ap-violet); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. Boutons (variantes Bootstrap) --------------- */
.btn {
  --bs-btn-font-family: var(--ap-font-title);
  --bs-btn-font-weight: 500;
  --bs-btn-font-size: .95rem;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .72rem;
  --bs-btn-border-radius: 10px;
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(100, 42, 135, .25);
  letter-spacing: -.005em;
  transition: background-color .2s var(--ap-ease), border-color .2s, color .2s,
              box-shadow .25s var(--ap-ease), transform .25s var(--ap-ease);
}
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 12px; }
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .45rem; --bs-btn-font-size: .85rem; }
.btn i { transition: transform .25s var(--ap-ease); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

.btn-primary {
  --bs-btn-bg: var(--ap-violet); --bs-btn-border-color: var(--ap-violet);
  --bs-btn-hover-bg: var(--ap-violet-700); --bs-btn-hover-border-color: var(--ap-violet-700);
  --bs-btn-active-bg: #431A5C; --bs-btn-active-border-color: #431A5C;
  --bs-btn-disabled-bg: var(--ap-violet); --bs-btn-disabled-border-color: var(--ap-violet);
  box-shadow: 0 8px 20px -8px rgba(100, 42, 135, .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(100, 42, 135, .6); }
.btn-success {
  --bs-btn-bg: var(--ap-green); --bs-btn-border-color: var(--ap-green);
  --bs-btn-hover-bg: var(--ap-green-700); --bs-btn-hover-border-color: var(--ap-green-700);
  --bs-btn-active-bg: #36872D; --bs-btn-active-border-color: #36872D;
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(85, 183, 71, .3);
  box-shadow: 0 8px 20px -8px rgba(62, 154, 51, .55);
}
.btn-success:hover { transform: translateY(-1px); }
.btn-outline-primary {
  --bs-btn-color: var(--ap-violet); --bs-btn-border-color: rgba(100, 42, 135, .35);
  --bs-btn-hover-bg: var(--ap-violet-50); --bs-btn-hover-color: var(--ap-violet); --bs-btn-hover-border-color: var(--ap-violet);
  --bs-btn-active-bg: var(--ap-violet-100); --bs-btn-active-color: var(--ap-violet); --bs-btn-active-border-color: var(--ap-violet);
  background: #fff;
}
.btn-light {
  --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--ap-violet);
  --bs-btn-hover-bg: var(--ap-violet-50); --bs-btn-hover-border-color: var(--ap-violet-50); --bs-btn-hover-color: var(--ap-violet-700);
}
.btn-outline-light { --bs-btn-hover-color: var(--ap-violet); }
.btn-whatsapp {
  --bs-btn-bg: #25D366; --bs-btn-border-color: #25D366; --bs-btn-color: #fff;
  --bs-btn-hover-bg: #1EBE5A; --bs-btn-hover-border-color: #1EBE5A; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #19A94F; --bs-btn-active-border-color: #19A94F; --bs-btn-active-color: #fff;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--ap-font-title); font-weight: 500; font-size: .92rem;
  color: var(--ap-violet); text-decoration: none;
}
.link-arrow i { font-size: .8em; transition: transform .25s var(--ap-ease); }
.link-arrow:hover { color: var(--ap-violet-700); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- 4. En-tête -------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--ap-line);
  box-shadow: 0 6px 24px -18px rgba(23, 32, 51, .35);
}
.site-header .navbar { min-height: var(--ap-header-h); padding-block: .5rem; }
.brand-logo { height: 44px; width: auto; display: block; }
.site-header .nav-link {
  position: relative;
  font-family: var(--ap-font-title); font-size: .9rem; font-weight: 500;
  color: #3C4558; padding: .5rem .7rem !important;
  transition: color .2s;
}
.site-header .nav-link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -.15rem;
  height: 2px; border-radius: 2px; background: var(--ap-violet);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ap-ease);
}
.site-header .nav-link:hover { color: var(--ap-violet); }
.site-header .nav-link.active { color: var(--ap-violet); }
.site-header .nav-link.active::after, .site-header .nav-link:hover::after { transform: scaleX(1); }
.navbar-toggler {
  border: 1px solid var(--ap-line); border-radius: 10px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ap-ink);
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(100, 42, 135, .2); }

/* Offcanvas mobile */
@media (max-width: 1199.98px) {
  /* backdrop-filter crée un bloc conteneur : l'offcanvas (position fixe) serait confiné au header */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-drawer.offcanvas-xl { --bs-offcanvas-width: min(340px, 88vw); }
  .nav-drawer .offcanvas-header { border-bottom: 1px solid var(--ap-line); min-height: var(--ap-header-h); }
  .site-header .nav-drawer .nav-link {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem .9rem !important; border-radius: 12px; font-size: .98rem; color: var(--ap-ink);
  }
  .site-header .nav-drawer .nav-link::after { display: none; }
  .nav-drawer .nav-link i { width: 20px; text-align: center; color: var(--ap-violet-light); }
  .site-header .nav-drawer .nav-link:hover, .site-header .nav-drawer .nav-link.active { background: var(--ap-violet-50); color: var(--ap-violet); }
  .nav-drawer .nav-link.active i { color: var(--ap-violet); }
}
@media (min-width: 1200px) { .nav-drawer .navbar-nav { gap: .1rem; } }
.drawer-contact { font-size: .9rem; }
.drawer-contact a { color: var(--ap-ink); text-decoration: none; }

/* ---------- 5. Éléments de section --------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-sm { padding-block: clamp(3rem, 6vw, 4.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ap-font-title); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ap-green-700);
  background: var(--ap-green-50); border: 1px solid rgba(85, 183, 71, .22);
  padding: .32rem .75rem .32rem .6rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(85, 183, 71, .18); }
.eyebrow.is-violet { color: var(--ap-violet); background: rgba(255, 255, 255, .7); border-color: rgba(100, 42, 135, .18); }
.eyebrow.is-violet::before { box-shadow: 0 0 0 3px rgba(100, 42, 135, .15); }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.18; margin-bottom: 1rem; }
.section-title .accent { color: var(--ap-violet); }
.section-intro { color: var(--ap-muted); font-size: 1.06rem; max-width: 42rem; }

/* Tuile d'icône */
.icon-tile {
  --tile: var(--ap-violet);
  --tile-bg: var(--ap-violet-50);
  width: 52px; height: 52px; flex: 0 0 52px;
  display: inline-grid; place-items: center;
  border-radius: 14px; background: var(--tile-bg); color: var(--tile);
  font-size: 1.35rem;
  --fa-primary-color: var(--tile); --fa-secondary-color: var(--tile); --fa-secondary-opacity: .35;
  transition: transform .35s var(--ap-ease);
}
.icon-tile.sm { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; font-size: 1.05rem; }
.icon-tile.lg { width: 64px; height: 64px; flex-basis: 64px; border-radius: 18px; font-size: 1.6rem; }
.tile-green { --tile: var(--ap-green-700); --tile-bg: var(--ap-green-50); }
.tile-blue { --tile: #2F7BD8; --tile-bg: #EAF2FD; }
.tile-rose { --tile: #D6455D; --tile-bg: #FDEEF1; }
.tile-amber { --tile: #D98A12; --tile-bg: #FFF4E2; }
.tile-teal { --tile: #1A9A93; --tile-bg: #E6F6F5; }
.tile-violet { --tile: var(--ap-violet); --tile-bg: var(--ap-violet-50); }
.tile-ink { --tile: #fff; --tile-bg: var(--ap-violet); }

/* Liste à puces cochées */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: .68rem;
  flex: 0 0 22px; height: 22px; margin-top: .12rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--ap-green);
}
.check-list.is-violet li::before { background: var(--ap-violet); }

/* ---------- 6. Hero accueil -------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(155, 99, 197, .14), transparent 60%),
    radial-gradient(40% 50% at 40% 100%, rgba(85, 183, 71, .08), transparent 70%),
    linear-gradient(180deg, #FBF9FE 0%, #F6F2FB 100%);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 5vw, 4.5rem);
}
.hero-title { font-size: clamp(2.35rem, 5vw, 3.7rem); line-height: 1.06; margin-bottom: 1.25rem; }
.hero-title span { color: var(--ap-violet); display: block; }
.hero .btn { white-space: nowrap; }
.hero .btn-lg { --bs-btn-padding-x: 1.3rem; }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: #475166; max-width: 34rem; }
.hero-assurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .88rem; color: var(--ap-muted); }
.hero-assurances li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-assurances i { color: var(--ap-green); }

.hero-visual { position: relative; }
.hero-visual img.hero-shot {
  display: block; width: 100%; height: auto; border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow-lg);
}
@media (min-width: 992px) {
  .hero { min-height: 660px; display: flex; align-items: center; padding-bottom: 5.5rem; }
  .hero-copy { max-width: 620px; }
  .hero-visual {
    position: absolute; top: 47%; right: 0; width: 58%;
    transform: translateY(-50%);
  }
  .hero-visual img.hero-shot {
    border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
}
@media (min-width: 1200px) { .hero { min-height: 700px; } .hero-visual { width: 64%; } }
@media (min-width: 1600px) { .hero-visual { width: 60%; } }

/* Cartes flottantes du hero */
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px; padding: .7rem .95rem .7rem .7rem;
  box-shadow: 0 18px 40px -18px rgba(56, 24, 82, .38);
  font-size: .8rem; line-height: 1.3;
}
.float-card strong { display: block; font-family: var(--ap-font-title); font-size: .88rem; color: var(--ap-ink); }
.float-card small { color: var(--ap-muted); }
.float-card .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-green); box-shadow: 0 0 0 0 rgba(85, 183, 71, .5); animation: pulse 2.4s infinite; }
.float-card.fc-1 { left: 9%; top: 15%; }
.float-card.fc-2 { right: 3%; top: 3%; }
.float-card.fc-3 { left: 34%; bottom: 13%; }
@media (max-width: 991.98px) {
  .float-card { font-size: .74rem; padding: .55rem .75rem .55rem .55rem; }
  .float-card.fc-1 { left: -4px; bottom: -18px; }
  .float-card.fc-2 { right: -4px; top: -16px; }
  .float-card.fc-3 { display: none; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(85, 183, 71, .5); }
  70% { box-shadow: 0 0 0 9px rgba(85, 183, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 183, 71, 0); }
}

/* ---------- 7. Bandeau de confiance ------------------------------------ */
.trust-bar { position: relative; z-index: 3; margin-top: -2.2rem; }
.trust-panel {
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow); padding: 1.6rem 1.75rem;
}
.stat { display: flex; align-items: center; gap: .9rem; }
.stat-value { font-family: var(--ap-font-title); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1; color: var(--ap-ink); letter-spacing: -.03em; }
.stat-label { font-size: .86rem; color: var(--ap-muted); margin-top: .3rem; line-height: 1.3; }
.trust-note { display: flex; align-items: center; gap: .9rem; font-size: .9rem; color: #475166; line-height: 1.5; }
.flag-ci { flex: 0 0 38px; height: 26px; border-radius: 5px; overflow: hidden; display: flex; box-shadow: 0 0 0 1px var(--ap-line); }
.flag-ci span { flex: 1; }
.flag-ci span:nth-child(1) { background: #F77F00; }
.flag-ci span:nth-child(2) { background: #fff; }
.flag-ci span:nth-child(3) { background: #009E60; }
@media (min-width: 1200px) { .trust-divider { border-left: 1px solid var(--ap-line); } }

/* ---------- 8. Cartes génériques -------------------------------------- */
.benefit-card {
  height: 100%;
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  padding: 1.5rem 1.35rem;
  transition: transform .35s var(--ap-ease), box-shadow .35s var(--ap-ease), border-color .35s;
}
.benefit-card h3 { font-size: 1.02rem; line-height: 1.3; margin: 1.1rem 0 .5rem; }
.benefit-card p { font-size: .9rem; color: var(--ap-muted); margin: 0; line-height: 1.55; }
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); border-color: transparent; }
.benefit-card:hover .icon-tile { transform: scale(1.06) rotate(-3deg); }

/* ---------- 9. Section IA ---------------------------------------------- */
.ai-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(155, 99, 197, .22), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(100, 42, 135, .10), transparent 70%),
    linear-gradient(135deg, #F7F1FC 0%, #EFE5F8 100%);
}
.ai-circuit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.ai-circuit path { stroke: rgba(100, 42, 135, .22); stroke-width: 1.2; fill: none; }
.ai-circuit .flow { stroke: rgba(155, 99, 197, .75); stroke-dasharray: 6 220; animation: circuit 7s linear infinite; }
.ai-circuit circle { fill: #fff; stroke: rgba(100, 42, 135, .35); stroke-width: 1.2; }
@keyframes circuit { to { stroke-dashoffset: -452; } }

.ai-visual { position: relative; max-width: 440px; margin-inline: auto; }
.ai-visual .ai-frame {
  position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 0 0 11px rgba(155, 99, 197, .2), var(--ap-shadow-lg);
}
.ai-visual .ai-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.ai-visual::before {
  content: ""; position: absolute; inset: -9%; border-radius: 50%;
  border: 1px dashed rgba(100, 42, 135, .28);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 999px; padding: .45rem .85rem .45rem .5rem;
  font-family: var(--ap-font-title); font-size: .78rem; font-weight: 500;
  box-shadow: 0 12px 30px -14px rgba(56, 24, 82, .45);
}
.ai-chip i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ap-violet-50); color: var(--ap-violet); font-size: .75rem; }
.ai-chip.c1 { top: 8%; left: -6%; }
.ai-chip.c2 { bottom: 12%; right: -8%; }
@media (max-width: 575.98px) { .ai-chip.c1 { left: 0; } .ai-chip.c2 { right: 0; } }

.ai-features { display: grid; gap: .6rem; }
.ai-feature {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 14px;
  padding: .8rem 1rem; font-weight: 500; font-size: .95rem;
  transition: transform .3s var(--ap-ease), box-shadow .3s, background .3s;
}
.ai-feature:hover { transform: translateX(4px); background: #fff; box-shadow: 0 12px 28px -18px rgba(56, 24, 82, .5); }
.ai-feature .icon-tile { width: 38px; height: 38px; flex-basis: 38px; font-size: .95rem; border-radius: 10px; }

/* ---------- 10. Réseau pharmacie / dépôts ------------------------------ */
.depot-map { position: relative; max-width: 460px; height: 380px; margin-inline: auto; }
.depot-map .node { position: absolute; transform: translateX(-50%); width: 120px; }
.depot-map .n-central { left: 50%; top: 0; width: 180px; }
.depot-map .n-d1 { left: 12%; top: 45%; }
.depot-map .n-d2 { left: 50%; top: 45%; }
.depot-map .n-d3 { left: 88%; top: 45%; }
.depot-map .n-dash { left: 50%; top: 86%; width: 260px; }
.depot-map svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.depot-map .links path { fill: none; stroke: #D8CDE3; stroke-width: 2; }
.depot-map .links path.flow { stroke: var(--ap-violet-light); stroke-width: 2.4; stroke-dasharray: 5 9; animation: dash 1.6s linear infinite; }
.depot-map .links path.flow.up { stroke: var(--ap-green); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem;
  font-family: var(--ap-font-title); font-weight: 600; font-size: .82rem; color: var(--ap-ink);
}
.node-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow);
  font-size: 1.55rem; color: var(--ap-green-700);
  --fa-primary-color: var(--ap-green-700); --fa-secondary-color: var(--ap-green); --fa-secondary-opacity: .45;
}
.node.is-central .node-icon {
  width: 92px; height: 92px; border-radius: 24px; font-size: 2.2rem;
  background: linear-gradient(180deg, #fff, var(--ap-green-50));
  border-color: rgba(85, 183, 71, .35);
  box-shadow: 0 0 0 8px rgba(85, 183, 71, .08), var(--ap-shadow);
}
.node.is-dashboard .node-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--ap-ink); color: #fff; border-radius: 12px; padding: .8rem 1.2rem;
  box-shadow: 0 16px 32px -14px rgba(23, 32, 51, .55); font-size: .88rem;
}
.node.is-dashboard .node-pill i { color: #B9F2B0; }
.node small { font-weight: 500; color: var(--ap-muted); font-family: var(--ap-font-text); font-size: .72rem; }

.feature-list-2 { columns: 1; }
@media (min-width: 576px) and (max-width: 991.98px) { .feature-list-2 { columns: 2; column-gap: 1.5rem; } .feature-list-2 li { break-inside: avoid; margin-bottom: .8rem; } .feature-list-2.check-list { display: block; } }

/* ---------- 11. Cartes fonctionnalités --------------------------------- */
.feature-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  padding: 1.35rem 1.25rem 1.2rem; text-decoration: none; color: inherit;
  transition: transform .35s var(--ap-ease), box-shadow .35s var(--ap-ease), border-color .3s;
}
.feature-card h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.feature-card p { font-size: .88rem; color: var(--ap-muted); line-height: 1.5; margin-bottom: 1rem; }
.feature-card .more { margin-top: auto; font-family: var(--ap-font-title); font-size: .8rem; font-weight: 500; color: var(--ap-violet); opacity: 0; transform: translateY(4px); transition: .3s var(--ap-ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); border-color: rgba(100, 42, 135, .2); color: inherit; }
.feature-card:hover .more { opacity: 1; transform: none; }
@media (hover: none) { .feature-card .more { opacity: 1; transform: none; } }

/* Détail fonctionnalité (page fonctionnalités) */
.feature-row + .feature-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature-row { scroll-margin-top: calc(var(--ap-header-h) + 80px); }
.feature-media {
  position: relative; border-radius: var(--ap-radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ap-violet-50); box-shadow: var(--ap-shadow);
}
.feature-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ap-ease); }
.feature-row:hover .feature-media > img { transform: scale(1.03); }
.feature-media .ui-inset {
  position: absolute; right: 5%; bottom: 6%; width: 44%;
  border-radius: 12px; overflow: hidden; border: 4px solid #fff;
  box-shadow: 0 20px 40px -16px rgba(23, 32, 51, .5);
}
.feature-media .ui-inset.is-phone { width: 26%; border-radius: 18px; }
.feature-media .ui-inset img { width: 100%; display: block; }
.feature-number { font-family: var(--ap-font-title); font-weight: 600; font-size: .8rem; letter-spacing: .1em; color: var(--ap-violet-light); }
.promise { font-family: var(--ap-font-title); font-size: 1.2rem; font-weight: 500; color: var(--ap-violet); line-height: 1.45; }

/* Sommaire collant */
.feature-toc { position: sticky; top: calc(var(--ap-header-h) + 1px); z-index: 20; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ap-line); }
.feature-toc .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.feature-toc .nav::-webkit-scrollbar { display: none; }
.feature-toc .nav-link { white-space: nowrap; font-family: var(--ap-font-title); font-size: .85rem; font-weight: 500; color: var(--ap-muted); border-radius: 999px; padding: .45rem .95rem; }
.feature-toc .nav-link:hover { color: var(--ap-violet); }
.feature-toc .nav-link.active { background: var(--ap-violet); color: #fff; }

/* ---------- 12. Supports ----------------------------------------------- */
.devices-visual { position: relative; }
.devices-visual img { border-radius: var(--ap-radius-lg); box-shadow: var(--ap-shadow-lg); }
.device-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.15rem; border-radius: var(--ap-radius);
  border: 1px solid transparent; transition: background .3s, border-color .3s;
}
.device-item h3 { font-size: 1rem; margin: 0 0 .2rem; }
.device-item p { margin: 0; color: var(--ap-muted); font-size: .92rem; }
.device-item:hover { background: #fff; border-color: var(--ap-line); }

/* ---------- 13. Témoignage --------------------------------------------- */
.testimonial {
  position: relative; background: #fff; border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg); box-shadow: var(--ap-shadow); overflow: hidden;
}
.testimonial-benefit {
  background: linear-gradient(160deg, var(--ap-violet) 0%, #4A1C66 100%); color: #fff;
  padding: 2.25rem 2rem; height: 100%; position: relative; overflow: hidden;
}
.testimonial-benefit::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.testimonial-benefit .big { font-family: var(--ap-font-title); font-weight: 700; font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.testimonial-benefit .big small { display: block; font-size: .4em; font-weight: 500; letter-spacing: 0; opacity: .85; margin-top: .5rem; }
.testimonial-benefit p { color: rgba(255, 255, 255, .85); margin: 0; }
.testimonial-body { padding: 2.25rem 2rem; }
.testimonial-body blockquote { font-family: var(--ap-font-title); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; line-height: 1.5; color: var(--ap-ink); margin: 1rem 0 1.5rem; }
.quote-mark { font-size: 2rem; color: var(--ap-violet-light); opacity: .5; }
.avatar-initials {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--ap-font-title); font-weight: 600;
  background: var(--ap-green-50); color: var(--ap-green-700); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ap-line);
}
.testimonial-author strong { display: block; font-family: var(--ap-font-title); font-size: .98rem; }
.testimonial-author span { font-size: .86rem; color: var(--ap-muted); }
.avatar-initials.avatar-photo { object-fit: cover; padding: 0; }
.testimonial-body.is-compact blockquote { font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* Pharmacies équipées (page Nos références) */
.reference-tools { min-width: min(100%, 34rem); }
.reference-card {
  display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem;
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  transition: border-color .2s, box-shadow .2s;
}
.reference-card:hover { border-color: rgba(85, 183, 71, .35); box-shadow: var(--ap-shadow-sm); }
.reference-logo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; object-fit: cover; font-size: 1.15rem; }
.reference-name { font-family: var(--ap-font-title); font-size: .95rem; font-weight: 600; line-height: 1.35; margin: 0 0 .15rem; }
.reference-name a { color: inherit; text-decoration: none; }
.reference-name a:hover { color: var(--ap-violet); }
.reference-pharmacist { font-size: .84rem; color: var(--ap-muted); margin: 0 0 .4rem; }

/* ---------- 14. Accompagnement ---------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step-num {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--ap-violet-100); color: var(--ap-violet);
  font-family: var(--ap-font-title); font-weight: 600; font-size: 1.05rem; margin-bottom: 1.1rem;
  transition: background .35s, color .35s, border-color .35s;
}
.step-num i { font-size: 1.25rem; --fa-primary-color: currentColor; --fa-secondary-color: currentColor; --fa-secondary-opacity: .4; }
.step-label { display: block; font-family: var(--ap-font-title); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-green-700); margin-bottom: .35rem; }
.step:hover .step-num { background: var(--ap-violet); color: #fff; border-color: var(--ap-violet); }
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--ap-muted); margin: 0; }
@media (min-width: 992px) {
  .steps .step::before {
    content: ""; position: absolute; top: calc(1rem + 27px); left: 54px; right: -12px; height: 2px;
    background: linear-gradient(90deg, var(--ap-violet-100), var(--ap-violet-100) 50%, transparent 50%) 0 0 / 12px 2px repeat-x;
  }
  .steps > :last-child .step::before { display: none; }
}
.migration-note {
  display: flex; gap: 1rem; align-items: center;
  background: var(--ap-green-50); border: 1px solid rgba(85, 183, 71, .25); border-radius: var(--ap-radius);
  padding: 1.1rem 1.35rem; color: #2C5E25;
}
.migration-note strong { color: var(--ap-green-700); font-family: var(--ap-font-title); }

/* ---------- 15. Terrain / médias / activités --------------------------- */
.channel-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--ap-radius-lg);
  min-height: 300px; color: #fff; text-decoration: none; isolation: isolate;
}
.channel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ap-ease); }
.channel-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 32, 51, .05) 20%, rgba(23, 32, 51, .88) 100%); }
.channel-card.is-violet::before { background: linear-gradient(180deg, rgba(100, 42, 135, .15) 10%, rgba(62, 22, 86, .92) 100%); }
.channel-card.is-green::before { background: linear-gradient(180deg, rgba(23, 32, 51, .05) 10%, rgba(24, 70, 30, .9) 100%); }
.channel-card .inner { position: absolute; inset: auto 0 0 0; padding: 1.75rem; }
.channel-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .4rem; }
.channel-card p { color: rgba(255, 255, 255, .85); margin-bottom: 1rem; max-width: 30rem; }
.channel-card .go { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ap-font-title); font-weight: 500; font-size: .9rem; }
.channel-card:hover img { transform: scale(1.05); }
.channel-card:hover .go i { transform: translateX(4px); }
.channel-card .go i { transition: transform .3s var(--ap-ease); }

.post-card, .video-card, .activity-card {
  height: 100%; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ap-ease), box-shadow .35s var(--ap-ease);
}
.post-card:hover, .video-card:hover, .activity-card:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ap-violet-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ap-ease); }
.post-card:hover .card-media img, .video-card:hover .card-media img, .activity-card:hover .card-media img { transform: scale(1.05); }
.card-media .badge-cat {
  position: absolute; top: .85rem; left: .85rem;
  background: rgba(255, 255, 255, .94); color: var(--ap-violet);
  font-family: var(--ap-font-title); font-weight: 500; font-size: .72rem;
  border-radius: 999px; padding: .35rem .7rem;
}
.card-content { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: .45rem; }
.card-content p { font-size: .9rem; color: var(--ap-muted); line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; color: var(--ap-muted); }
.meta i { color: var(--ap-violet-light); margin-right: .3rem; }
.is-pending { font-style: italic; color: #8A93A6; }

/* Bouton lecture */
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; border: 0;
  background: rgba(255, 255, 255, .95); color: var(--ap-violet); font-size: 1.05rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .25), 0 12px 30px -8px rgba(23, 32, 51, .5);
  transition: transform .35s var(--ap-ease), background .3s, color .3s;
}
.play-btn i { margin-left: 3px; }
.video-card:hover .play-btn, .play-btn:hover { transform: scale(1.08); background: var(--ap-violet); color: #fff; }
.card-media .duration {
  position: absolute; right: .75rem; bottom: .75rem; background: rgba(23, 32, 51, .78); color: #fff;
  font-size: .74rem; font-weight: 500; padding: .2rem .5rem; border-radius: 6px;
}
.video-card .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(23, 32, 51, .35)); pointer-events: none; }
.video-card .card-media .play-btn, .video-card .card-media .duration { z-index: 1; }
.feature-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 500; color: var(--ap-green-700); background: var(--ap-green-50); padding: .25rem .6rem; border-radius: 6px; }

/* Filtres */
.filter-bar { display: flex; gap: .5rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .filter-bar { flex-wrap: wrap; } }
.filter-btn {
  flex: 0 0 auto; border: 1px solid var(--ap-line); background: #fff; color: #3C4558;
  font-family: var(--ap-font-title); font-weight: 500; font-size: .85rem;
  border-radius: 999px; padding: .55rem 1rem; transition: .25s var(--ap-ease);
}
.filter-btn:hover { border-color: var(--ap-violet); color: var(--ap-violet); }
.filter-btn.active { background: var(--ap-violet); border-color: var(--ap-violet); color: #fff; box-shadow: 0 8px 18px -10px rgba(100, 42, 135, .7); }
.filter-btn .count { display: inline-block; min-width: 1.4rem; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; background: rgba(23, 32, 51, .07); font-size: .72rem; }
.filter-btn.active .count { background: rgba(255, 255, 255, .22); }
.filter-item { transition: opacity .35s var(--ap-ease), transform .35s var(--ap-ease); }
.filter-item.is-hiding { opacity: 0; transform: scale(.97); }
.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed #D5DAE4; border-radius: var(--ap-radius); color: var(--ap-muted); }
.empty-state i { font-size: 1.8rem; color: var(--ap-violet-light); margin-bottom: .8rem; }

/* Galerie */
.gallery-item {
  position: relative; display: block; width: 100%; border: 0; padding: 0; background: none;
  border-radius: var(--ap-radius); overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ap-ease); }
.gallery-item::after { content: "\f00e"; font-family: "Font Awesome 6 Pro"; font-weight: 400; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: rgba(62, 22, 86, .45); opacity: 0; transition: opacity .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { border-radius: var(--ap-radius); max-height: 80vh; object-fit: contain; }
.lightbox .btn-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ap-ink); }
.lightbox .btn-nav.prev { left: -8px; }
.lightbox .btn-nav.next { right: -8px; }
@media (min-width: 992px) { .lightbox .btn-nav.prev { left: -64px; } .lightbox .btn-nav.next { right: -64px; } }

/* Lecteur vidéo (modal / page détail) */
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--ap-radius-lg); overflow: hidden;
  background: #120A1A; box-shadow: var(--ap-shadow-lg);
}
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 1.5rem; }
.player-overlay .play-btn { position: static; margin: 0 0 1rem; }
.player-overlay p { color: rgba(255, 255, 255, .85); max-width: 28rem; font-size: .95rem; }
.video-modal .modal-content { border: 0; border-radius: var(--ap-radius-lg); overflow: hidden; }

/* ---------- 16. Hero pages internes ------------------------------------ */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(155, 99, 197, .18), transparent 60%),
    radial-gradient(30% 60% at 0% 100%, rgba(85, 183, 71, .07), transparent 70%),
    linear-gradient(180deg, #FBF9FE, #F5F0FA);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #A3AABB; --bs-breadcrumb-item-active-color: var(--ap-muted); font-size: .85rem; margin-bottom: 1.25rem; }
.page-hero .breadcrumb a { color: var(--ap-violet); text-decoration: none; }
.page-hero-media { position: relative; }
.page-hero-media img { width: 100%; border-radius: var(--ap-radius-lg); box-shadow: var(--ap-shadow-lg); }
.hero-dots { position: absolute; width: 140px; height: 140px; background-image: radial-gradient(rgba(100, 42, 135, .25) 1.5px, transparent 1.5px); background-size: 14px 14px; z-index: -1; }

/* Différenciateurs */
.diff-card {
  position: relative; height: 100%; border-radius: var(--ap-radius-lg); padding: 2rem 1.75rem;
  background: #fff; border: 1px solid var(--ap-line); overflow: hidden;
  transition: transform .35s var(--ap-ease), box-shadow .35s var(--ap-ease);
}
.diff-card:hover { transform: translateY(-5px); box-shadow: var(--ap-shadow); }
.diff-card .num { position: absolute; top: 1.1rem; right: 1.4rem; font-family: var(--ap-font-title); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--ap-violet-50); }
.diff-card h3 { font-size: 1.2rem; margin: 1.2rem 0 .6rem; }
.diff-card p { color: var(--ap-muted); font-size: .94rem; }
.diff-card.is-feature { background: linear-gradient(160deg, var(--ap-violet) 0%, #4A1C66 100%); border-color: transparent; color: #fff; }
.diff-card.is-feature h3 { color: #fff; }
.diff-card.is-feature p { color: rgba(255, 255, 255, .82); }
.diff-card.is-feature .num { color: rgba(255, 255, 255, .08); }
.diff-card.is-feature .link-arrow { color: #fff; }

/* Innovations : sommaire */
.innov-nav a {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; height: 100%;
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  text-decoration: none; color: var(--ap-ink); font-family: var(--ap-font-title); font-weight: 500; font-size: .92rem;
  transition: .3s var(--ap-ease);
}
.innov-nav a:hover { border-color: var(--ap-violet); color: var(--ap-violet); transform: translateY(-3px); box-shadow: var(--ap-shadow); }

/* Chiffres (références) */
.stat-card { height: 100%; padding: 1.75rem; border-radius: var(--ap-radius-lg); background: #fff; border: 1px solid var(--ap-line); }
.stat-card .stat-value { font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ap-violet); }

/* ---------- 17. Formulaires ------------------------------------------- */
.form-panel { background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius-lg); box-shadow: var(--ap-shadow); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-label { font-weight: 500; font-size: .9rem; color: var(--ap-ink); margin-bottom: .4rem; }
.form-label .req { color: #D6455D; margin-left: .15rem; }
.form-control, .form-select {
  border-radius: 10px; border-color: #DCE1EA; padding: .72rem .95rem; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #9AA3B5; }
.form-control:focus, .form-select:focus { border-color: var(--ap-violet-light); box-shadow: 0 0 0 .22rem rgba(100, 42, 135, .12); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: #9AA3B5; pointer-events: none; z-index: 2; }
.input-icon > .form-control { padding-left: 2.6rem; }
.invalid-feedback { font-size: .8rem; }
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: #DC3545; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success .icon-tile { margin-bottom: 1.25rem; }

/* Plugin modal-select : alignement sur les champs du site */
.mss-control {
  --mss-accent: var(--ap-violet);
  --mss-accent-soft: rgba(100, 42, 135, .12);
  min-height: 48px; border-radius: 10px; border-color: #DCE1EA; padding: .6rem .95rem;
  font-family: var(--ap-font-text);
}
.mss-control-text, .mss-control-placeholder { font-size: .95rem; }
.mss-control-placeholder { color: #9AA3B5; }
.is-invalid + .mss-control, .mss-control.is-invalid { border-color: #DC3545; }
.mss-overlay { --mss-font: var(--ap-font-text); }
/* flatpickr : couleurs de marque */
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--ap-violet); border-color: var(--ap-violet); }
.flatpickr-day.today { border-color: var(--ap-green); }

/* Contact */
.contact-tile {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; height: 100%;
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  color: var(--ap-ink); text-decoration: none; transition: .3s var(--ap-ease);
}
a.contact-tile:hover { border-color: var(--ap-violet); box-shadow: var(--ap-shadow); transform: translateY(-3px); color: var(--ap-ink); }
.contact-tile h2, .contact-tile h3 { font-size: .95rem; margin: 0 0 .2rem; }
.contact-tile p { margin: 0; color: var(--ap-muted); font-size: .92rem; }
.map-frame { border-radius: var(--ap-radius-lg); overflow: hidden; border: 1px solid var(--ap-line); min-height: 320px; height: 100%; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: saturate(.85); }

/* Aside démo */
.demo-aside {
  position: relative; overflow: hidden; border-radius: var(--ap-radius-lg); color: #fff; height: 100%;
  background: linear-gradient(165deg, var(--ap-violet) 0%, #3E1656 100%); padding: clamp(1.75rem, 3vw, 2.5rem);
}
.demo-aside h2, .demo-aside h3 { color: #fff; }
.demo-aside .check-list li::before { background: var(--ap-green); }
.demo-aside .check-list li { color: rgba(255, 255, 255, .9); }
.demo-aside { display: flex; flex-direction: column; }
.demo-aside .doctor { display: block; width: 190px; height: auto; margin: 1rem calc(-1 * clamp(1.75rem, 3vw, 2.5rem)) calc(-1 * clamp(1.75rem, 3vw, 2.5rem)) auto; margin-top: auto; pointer-events: none; }
.demo-aside a { color: #fff; }

/* ---------- 18. CTA final --------------------------------------------- */
.cta-final { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: #3E1656; }
.cta-final .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(76, 28, 105, .98) 0%, rgba(100, 42, 135, .94) 42%, rgba(100, 42, 135, .55) 68%, rgba(100, 42, 135, .1) 100%);
}
@media (max-width: 991.98px) { .cta-final::before { background: linear-gradient(180deg, rgba(76, 28, 105, .96) 0%, rgba(100, 42, 135, .9) 65%, rgba(100, 42, 135, .7) 100%); } }
.cta-final h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; }
.cta-final p { color: rgba(255, 255, 255, .86); font-size: 1.06rem; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .95rem; }
.cta-contacts a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; opacity: .92; }
.cta-contacts a:hover { opacity: 1; text-decoration: underline; }
.cta-contacts i { color: #B9F2B0; }

/* Bandeau démo compact (pages internes) */
.cta-strip { border-radius: var(--ap-radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); background: linear-gradient(120deg, var(--ap-violet) 0%, #7A3AA3 60%, var(--ap-violet-light) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-strip::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.cta-strip h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.cta-strip p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ---------- 19. Pied de page ------------------------------------------ */
.site-footer { background: #0F1524; color: #A9B1C3; font-size: .92rem; }
.site-footer .footer-logo { height: 46px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; box-sizing: content-box; }
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: #A9B1C3; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.footer-contact i { color: var(--ap-green); width: 16px; margin-top: .25rem; }
.social-link { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff !important; transition: background .25s, transform .25s; }
.social-link:hover { background: var(--ap-violet); transform: translateY(-2px); }
.social-link.is-disabled { opacity: .35; pointer-events: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ---------- 20. Boutons flottants ------------------------------------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem; color: #fff; text-decoration: none;
  background: #25D366; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ap-ease);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.07); }
.whatsapp-float .tip {
  position: absolute; right: calc(100% + 12px); white-space: nowrap;
  background: var(--ap-ink); color: #fff; font-size: .8rem; font-family: var(--ap-font-title); font-weight: 500;
  padding: .45rem .8rem; border-radius: 8px; opacity: 0; transform: translateX(6px); transition: .3s var(--ap-ease); pointer-events: none;
}
.whatsapp-float:hover .tip, .whatsapp-float:focus-visible .tip { opacity: 1; transform: none; }
.back-to-top {
  position: fixed; right: 29px; bottom: 90px; z-index: 1039;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ap-line);
  background: #fff; color: var(--ap-violet); box-shadow: var(--ap-shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ap-ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ap-violet); color: #fff; }

/* ---------- 21. Animations d'apparition -------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ap-ease), transform .8s var(--ap-ease); transition-delay: var(--d, 0s); }
.js .reveal.reveal-left { transform: translateX(-26px); }
.js .reveal.reveal-right { transform: translateX(26px); }
.js .reveal.reveal-zoom { transform: scale(.96); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 22. Ajustements mobiles ---------------------------------- */
@media (max-width: 991.98px) {
  .trust-bar { margin-top: 0; padding-top: 1.5rem; }
  .hero { padding-bottom: 1rem; }
  .hero-visual img.hero-shot { aspect-ratio: 16 / 10; object-fit: cover; object-position: 78% 50%; }
  .float-card.fc-1 { display: none; }
}
@media (max-width: 575.98px) {
  :root { --ap-header-h: 66px; }
  .hero-visual img.hero-shot { aspect-ratio: 5 / 4; }
  /* Cartes compactes : icône à gauche, texte à droite */
  .benefit-card, .feature-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem; }
  .benefit-card .icon-tile, .feature-card .icon-tile { grid-row: span 2; }
  .benefit-card h3, .feature-card h3 { margin: .1rem 0 .25rem; }
  .benefit-card h3 br { display: none; }
  .feature-card p { margin-bottom: 0; }
  .feature-card .more { display: none; }
  .section { padding-block: 3.5rem; }
  .brand-logo { height: 38px; }
  .hero-title { font-size: 2.2rem; }
  .trust-panel { padding: 1.25rem; }
  .testimonial-benefit, .testimonial-body { padding: 1.75rem 1.4rem; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .back-to-top { right: 23px; bottom: 82px; }
}
