/* ============================================================
   MAGICA HEALTHTECH — DESIGN SYSTEM 2026 (thème clair)
   Direction : Éditorial premium
   Papier chaud · Fraunces (titres) · Instrument Sans (texte)
   Encre navy de la marque (#000232) · Violet en accent unique
   Remplace style.css + magicahealthtech.css sur les pages publiques.
   ============================================================ */

:root {
    /* Couleurs fondamentales */
    --paper: #FAF8F4;
    --paper-deep: #F3F0E9;
    --white: #FFFFFF;
    --ink: #000232;
    --ink-soft: #3E3E5C;
    --ink-muted: #71718C;
    --hairline: #E7E3D8;
    --hairline-strong: #D9D4C6;

    /* Accent de marque */
    --violet: #6447D6;
    --violet-deep: #4F35B8;
    --violet-tint: #F1EDFD;
    --cyan: #0ACDDF;

    /* Encres sombres (CTA final, footer) */
    --night: #0B0B30;
    --night-soft: #1A1A45;

    /* Accents produits (lisibles AA sur blanc) */
    --c-his: #4338CA;      --t-his: #EEF0FE;
    --c-gesticab: #6D28D9; --t-gesticab: #F4EFFE;
    --c-humaneo: #B45309;  --t-humaneo: #FDF3E3;
    --c-gmao: #0E7490;     --t-gmao: #E7F6FA;
    --c-labo: #047857;     --t-labo: #E8F6F0;
    --c-cc: #BE185D;       --t-cc: #FDEDF4;

    /* Sémantiques */
    --ok: #047857;         --t-ok: #E8F6F0;
    --warn: #B45309;       --t-warn: #FDF3E3;
    --bad: #BE123C;        --t-bad: #FDEDF1;

    /* Typo */
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;

    /* Mesures */
    --container: 1180px;
    --section-y: 112px;
    --r-card: 18px;
    --r-pill: 999px;

    /* Ombres */
    --shadow-card: 0 1px 2px rgba(0, 2, 50, 0.05);
    --shadow-lift: 0 18px 44px rgba(0, 2, 50, 0.09);
    --shadow-frame: 0 30px 70px rgba(0, 2, 50, 0.13);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(100, 71, 214, 0.18); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff;
    padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Typographie ---------- */
h1, h2, h3 { color: var(--ink); }

.display {
    font-family: var(--serif);
    font-weight: 560;
    font-variation-settings: 'opsz' 60;
    letter-spacing: -0.015em;
    line-height: 1.05;
}

h1.display { font-size: clamp(2.9rem, 5.4vw, 4.7rem); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2, .section-head h1 {
    font-family: var(--serif);
    font-weight: 560;
    font-variation-settings: 'opsz' 50;
    font-size: clamp(2rem, 3.6vw, 3.05rem);
    line-height: 1.12;
    letter-spacing: -0.012em;
    margin: 18px 0 18px;
}

.section-head p { font-size: 1.08rem; color: var(--ink-muted); }

h1 em, h2 em, h3 em {
    font-style: italic;
    font-weight: 480;
    color: var(--violet);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--violet);
}
.eyebrow::before {
    content: '';
    width: 26px; height: 1.5px;
    background: var(--violet);
    opacity: 0.55;
}
.section-head.center .eyebrow::after {
    content: '';
    width: 26px; height: 1.5px;
    background: var(--violet);
    opacity: 0.55;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.99rem;
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn i { font-size: 1.05em; transition: transform 0.22s ease; }
.btn:hover i.ph-arrow-right { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover {
    background: var(--violet-deep);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(79, 53, 184, 0.28);
}

.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover {
    background: var(--violet-deep);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(79, 53, 184, 0.32);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

.btn-full { width: 100%; justify-content: center; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--violet-deep);
}
.text-link i { transition: transform 0.2s ease; }
.text-link:hover i { transform: translateX(3px); }

/* ---------- Announce bar ---------- */
.announce-bar {
    background: var(--night);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.84rem;
    position: relative;
    z-index: 101;
}
.announce-bar.hidden { display: none; }
.announce-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 9px 44px 9px 16px;
    text-align: center;
}
.announce-badge {
    background: rgba(100, 71, 214, 0.35);
    color: #C9B8FF;
    border-radius: var(--r-pill);
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.announce-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.announce-close {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    width: 30px; height: 30px;
    display: grid; place-items: center;
}
.announce-close:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
    background: rgba(250, 248, 244, 0.94);
    border-bottom-color: var(--hairline);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}

.brand { flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a {
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--ink-soft);
    position: relative;
    padding: 6px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.28s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 24px; font-size: 0.92rem; }

.header-phone {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.92rem; font-weight: 600; color: var(--ink);
}
.header-phone i { color: var(--violet); }

.nav-toggle {
    display: none;
    background: none; border: none;
    width: 42px; height: 42px;
    color: var(--ink);
    font-size: 1.5rem;
    align-items: center; justify-content: center;
}

/* ---------- Hero home ---------- */
.hero {
    padding: 84px 0 96px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -12%;
    width: 760px; height: 760px;
    background: radial-gradient(closest-side, rgba(100, 71, 214, 0.055), transparent 72%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 64px;
    align-items: center;
}

/* Ancre les cartes flottantes sur le visuel (et non sur la section pleine
   largeur) — sinon elles débordent hors écran et sont coupées par overflow:hidden */
.hero-visual { position: relative; }

.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy h1 .dot { color: var(--violet); }

.hero-lead {
    font-size: 1.14rem;
    color: var(--ink-muted);
    max-width: 540px;
    margin-bottom: 36px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-lead a { color: var(--violet-deep); font-weight: 600; border-bottom: 1px solid rgba(100,71,214,0.3); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
    display: flex;
    border-top: 1px solid var(--hairline);
    padding-top: 28px;
    max-width: 560px;
}
.hero-stats > div { flex: 1; padding-right: 24px; }
.hero-stats > div + div {
    padding-left: 24px;
    border-left: 1px solid var(--hairline);
}
.stat-num {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.9rem;
    color: var(--ink);
    line-height: 1.1;
    white-space: nowrap;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 5px;
    letter-spacing: 0.01em;
}

/* ---------- Hero pages intérieures ---------- */
.page-hero {
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -55%; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(closest-side, rgba(100, 71, 214, 0.05), transparent 72%);
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 {
    font-family: var(--serif);
    font-weight: 560;
    font-variation-settings: 'opsz' 55;
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.014em;
    margin-bottom: 22px;
}
.page-hero .lead {
    font-size: 1.12rem;
    color: var(--ink-muted);
    max-width: 680px;
    margin: 0 auto 34px;
}
.page-hero .lead strong { color: var(--ink); font-weight: 600; }
.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* KPI strip (références, pages spé) */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    max-width: 880px;
    margin: 48px auto 0;
}
.kpi-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
}
.kpi-card b {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--ink);
    line-height: 1.1;
    white-space: nowrap;
}
.kpi-card span { font-size: 0.8rem; color: var(--ink-muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 16px 0 0;
    font-size: 0.82rem;
    color: var(--ink-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '›'; color: var(--hairline-strong); }
.breadcrumb a:hover { color: var(--violet-deep); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 550; }

/* ---------- Cadres (browser / app) ---------- */
.browser-frame {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-frame);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: #FCFBF8;
    border-bottom: 1px solid var(--hairline);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #E4E0D5; }
.browser-url {
    flex: 1;
    text-align: center;
    font-size: 0.74rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}
.browser-frame img { width: 100%; height: auto; }

.app-frame {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    box-shadow: var(--shadow-frame);
    overflow: hidden;
}
.app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--hairline);
    background: #FCFBF8;
}
.app-bar span.dot { width: 9px; height: 9px; border-radius: 50%; background: #E4E0D5; }
.app-bar .app-title {
    flex: 1;
    text-align: center;
    font-size: 0.74rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}
.app-body { padding: 22px; }

.float-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
    padding: 16px 18px;
}
.float-card.fc-bottom { left: -34px; bottom: -30px; display: flex; align-items: center; gap: 14px; }
.fc-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--t-labo);
    color: var(--c-labo);
    display: grid; place-items: center;
    font-size: 1.25rem;
}
.fc-title { font-weight: 650; color: var(--ink); font-size: 0.92rem; }
.fc-sub { font-size: 0.78rem; color: var(--ink-muted); margin-top: 1px; }
.float-card.fc-top { right: -22px; top: -26px; }
.fc-kpi {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--ink);
    line-height: 1;
}
.fc-kpi small { font-size: 0.85rem; color: var(--c-labo); font-family: var(--sans); font-weight: 700; margin-left: 6px; }
.fc-cap { font-size: 0.75rem; color: var(--ink-muted); margin-top: 5px; }

/* ---------- Bande clients ---------- */
.clients { padding: 40px 0 64px; }
.clients-label {
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
    margin-bottom: 30px;
}
.clients-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.clients-track.wide { grid-template-columns: repeat(4, 1fr); }
.client-chip {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.client-chip img {
    max-height: 44px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.62;
    transition: filter 0.25s ease, opacity 0.25s ease;
}
.client-chip:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-card); }
.client-chip:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Certifications ---------- */
.certs { padding: 52px 0 var(--section-y); }
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.certs-grid.four { grid-template-columns: repeat(4, 1fr); }
.cert-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 26px 28px;
}
.cert-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 1.35rem;
    background: var(--violet-tint);
    color: var(--violet-deep);
}
.cert-card strong {
    display: block;
    color: var(--ink);
    font-size: 1.02rem;
    margin-bottom: 5px;
}
.cert-card span { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Sections génériques ---------- */
.section { padding: var(--section-y) 0; }
.section.on-white { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section.on-white + .section.on-white { border-top: none; }

/* ---------- Grilles de cartes ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }

.info-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 30px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.info-card .ic-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 1.35rem;
    background: var(--violet-tint);
    color: var(--violet-deep);
    margin-bottom: 20px;
}
.info-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.25;
    margin-bottom: 10px;
}
.info-card p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.6; }
.info-card p strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Vous êtes / segments ---------- */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.segment-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 28px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.segment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--hairline-strong);
}
.segment-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
}
.segment-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
}
.segment-card h3 {
    font-family: var(--serif);
    font-weight: 580;
    font-size: 1.18rem;
    line-height: 1.25;
    margin-bottom: 10px;
}
.segment-card p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 18px;
}

/* ---------- Catalogue produits ---------- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.product-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-card .p-icon {
    width: 48px; height: 48px;
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
}
.p-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.product-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 2px;
}
.p-sub { font-size: 0.86rem; color: var(--ink-muted); font-weight: 550; margin-bottom: 14px; }
.product-card p.p-desc {
    font-size: 0.93rem;
    color: var(--ink-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}
.p-desc strong { color: var(--ink-soft); font-weight: 600; }

.product-card.flagship {
    background: linear-gradient(135deg, #FFFFFF 55%, var(--t-his));
}
.flagship-pill {
    position: absolute;
    top: 26px; right: 26px;
    background: var(--ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: var(--r-pill);
}

/* couleurs produits */
.acc-his .p-icon, .acc-his .segment-icon, .acc-his .ic-icon { background: var(--t-his); color: var(--c-his); }
.acc-his .p-tag, .acc-his .segment-role { color: var(--c-his); }
.acc-gesticab .p-icon, .acc-gesticab .segment-icon, .acc-gesticab .ic-icon { background: var(--t-gesticab); color: var(--c-gesticab); }
.acc-gesticab .p-tag, .acc-gesticab .segment-role { color: var(--c-gesticab); }
.acc-humaneo .p-icon, .acc-humaneo .segment-icon, .acc-humaneo .ic-icon { background: var(--t-humaneo); color: var(--c-humaneo); }
.acc-humaneo .p-tag, .acc-humaneo .segment-role { color: var(--c-humaneo); }
.acc-gmao .p-icon, .acc-gmao .segment-icon, .acc-gmao .ic-icon { background: var(--t-gmao); color: var(--c-gmao); }
.acc-gmao .p-tag, .acc-gmao .segment-role { color: var(--c-gmao); }
.acc-labo .p-icon, .acc-labo .segment-icon, .acc-labo .ic-icon { background: var(--t-labo); color: var(--c-labo); }
.acc-labo .p-tag, .acc-labo .segment-role { color: var(--c-labo); }
.acc-cc .p-icon, .acc-cc .segment-icon, .acc-cc .ic-icon { background: var(--t-cc); color: var(--c-cc); }
.acc-cc .p-tag, .acc-cc .segment-role { color: var(--c-cc); }

/* ---------- Deep-dive produit ---------- */
.product-detail { padding: 96px 0; }
.product-detail + .product-detail { border-top: 1px solid var(--hairline); }
.product-detail.alt { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}
.detail-grid.flip .detail-copy { order: 2; }
.detail-grid.flip .detail-visual { order: 1; }

.detail-copy .eyebrow { margin-bottom: 20px; }
.detail-copy h2 {
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.detail-lead {
    font-size: 1.04rem;
    color: var(--ink-muted);
    margin-bottom: 32px;
}
.detail-lead strong { color: var(--ink); font-weight: 600; }

.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 28px;
    margin-bottom: 36px;
}
.feat { padding: 14px 0; border-top: 1px solid var(--hairline); }
.feat strong {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 0.97rem;
    font-weight: 650;
    margin-bottom: 4px;
}
.feat strong i { font-size: 1.1rem; }
.feat span { font-size: 0.87rem; color: var(--ink-muted); line-height: 1.5; }

.detail-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* éléments de mockup */
.mk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mk-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.mk-sub { font-size: 0.74rem; color: var(--ink-muted); margin-top: 2px; }
.mk-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    letter-spacing: 0.04em;
}
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.mk-kpis.three { grid-template-columns: repeat(3, 1fr); }
.mk-kpi {
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 12px 13px;
    background: var(--white);
}
.mk-kpi b {
    display: block;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
}
.mk-kpi small {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
}
.mk-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid var(--hairline);
    background: var(--white);
}
.mk-row + .mk-row { margin-top: 8px; }
.mk-row-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid; place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.mk-row b { font-size: 0.84rem; color: var(--ink); display: block; font-weight: 650; }
.mk-row small { font-size: 0.73rem; color: var(--ink-muted); }
.mk-row .mk-pill { margin-left: auto; flex-shrink: 0; }

.mk-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
    padding: 14px;
    border: 1px solid var(--hairline);
    border-radius: 11px;
    background: var(--white);
}
.mk-chart > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mk-chart .bar { width: 22px; border-radius: 5px 5px 2px 2px; background: var(--violet); opacity: 0.85; }
.mk-chart label { font-size: 0.62rem; color: var(--ink-muted); letter-spacing: 0.04em; }

.mk-table { border: 1px solid var(--hairline); border-radius: 11px; overflow: hidden; font-size: 0.8rem; }
.mk-tr { display: grid; grid-template-columns: 1.7fr 1.2fr 0.7fr 0.8fr; gap: 8px; padding: 10px 14px; background: var(--white); }
.mk-tr + .mk-tr { border-top: 1px solid var(--hairline); }
.mk-tr.head {
    background: var(--t-labo);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-labo);
}
.mk-tr b { color: var(--ink); font-weight: 650; }
.mk-tr .price { color: var(--c-labo); font-weight: 650; }

.mk-cal { display: grid; grid-template-columns: 76px repeat(7, 1fr); gap: 4px; font-size: 0.68rem; }
.mk-cal .name { color: var(--ink); font-weight: 600; padding: 7px 0; }
.mk-cal .dayhead { text-align: center; color: var(--ink-muted); font-weight: 650; padding-bottom: 4px; }
.mk-cal .cell { border-radius: 6px; padding: 7px 0; text-align: center; font-weight: 700; }
.cell.J { background: var(--t-labo); color: var(--c-labo); }
.cell.N { background: var(--t-humaneo); color: var(--c-humaneo); }
.cell.G { background: var(--t-his); color: var(--c-his); }
.cell.off { background: var(--paper-deep); color: var(--ink-muted); font-weight: 400; }
.mk-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 0.7rem; color: var(--ink-muted); }
.mk-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ---------- Captures (interface) ---------- */
.interface-hero { max-width: 1060px; margin: 0 auto; }
.interface-caption {
    text-align: center;
    font-size: 0.84rem;
    color: var(--ink-muted);
    margin-top: 18px;
}
.shots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 52px;
}
.shots-grid.three { grid-template-columns: repeat(3, 1fr); }
.shot-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shot-img {
    aspect-ratio: 16/9.5;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
    background: #F6F8FB;
}
.shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-card h3 {
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 600;
    margin: 20px 24px 6px;
}
.shot-card p { font-size: 0.9rem; color: var(--ink-muted); margin: 0 24px 22px; line-height: 1.55; }

/* ---------- Patients ---------- */
.patients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.patient-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 40px 38px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}
.patient-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.patient-card .p-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}
.patient-card.rdv .p-icon { background: var(--t-gmao); color: var(--c-gmao); }
.patient-card.gf .p-icon { background: var(--t-labo); color: var(--c-labo); }
.patient-card h3 {
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 12px;
}
.patient-domain { font-size: 0.84rem; color: var(--ink-muted); font-weight: 600; }
.patient-card p { font-size: 0.97rem; color: var(--ink-muted); margin: 16px 0 22px; line-height: 1.65; }
.patient-card p strong { color: var(--ink); font-weight: 600; }
.free-pill {
    position: absolute;
    top: 32px; right: 32px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-labo);
    background: var(--t-labo);
    padding: 6px 13px;
    border-radius: var(--r-pill);
}

/* ---------- Liste éditoriale numérotée ---------- */
.why-list { max-width: 980px; margin: 0 auto; }
.why-row {
    display: grid;
    grid-template-columns: 120px 1fr 1.4fr;
    gap: 40px;
    padding: 44px 0;
    border-top: 1px solid var(--hairline);
    align-items: baseline;
}
.why-row:last-child { border-bottom: 1px solid var(--hairline); }
.why-num {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 480;
    font-size: 2.6rem;
    color: var(--violet);
    line-height: 1;
}
.why-row h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.2;
}
.why-row p { font-size: 0.99rem; color: var(--ink-muted); }
.why-row p strong { color: var(--ink); font-weight: 600; }

/* ---------- Étapes / workflow ---------- */
.steps-list { max-width: 880px; margin: 0 auto; counter-reset: step; }
.step-row {
    display: flex;
    gap: 24px;
    padding: 26px 0;
    border-top: 1px solid var(--hairline);
    align-items: flex-start;
}
.step-row:last-child { border-bottom: 1px solid var(--hairline); }
.step-num {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--violet-tint);
    color: var(--violet-deep);
    display: grid; place-items: center;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.15rem;
}
.step-row h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; margin-bottom: 6px; }
.step-row p { font-size: 0.95rem; color: var(--ink-muted); }
.step-row p strong { color: var(--ink); font-weight: 600; }
.step-meta { font-size: 0.78rem; color: var(--violet-deep); font-weight: 650; text-transform: uppercase; letter-spacing: 0.07em; }

/* ---------- Témoignages ---------- */
.testis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}
.testi-quote-mark {
    font-family: var(--serif);
    font-size: 3.2rem;
    line-height: 0.6;
    color: var(--violet);
    opacity: 0.5;
    margin-bottom: 20px;
}
.testi-card blockquote {
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--ink);
    flex: 1;
    margin-bottom: 28px;
    border: none;
}
.testi-card blockquote strong { font-weight: 650; }
.testi-author { display: flex; align-items: center; gap: 13px; }
.testi-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--violet-tint);
    color: var(--violet-deep);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}
.testi-author b { display: block; color: var(--ink); font-size: 0.93rem; font-weight: 650; }
.testi-author small { font-size: 0.8rem; color: var(--ink-muted); }

/* ---------- Tableau comparatif ---------- */
.comp-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
}
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 680px; }
.comp-table th, .comp-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
}
.comp-table thead th {
    background: var(--paper);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-muted);
    font-weight: 700;
}
.comp-table thead th.highlight { color: var(--violet-deep); background: var(--violet-tint); }
.comp-table td.highlight { background: rgba(241, 237, 253, 0.45); font-weight: 550; color: var(--ink); }
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table td:first-child { font-weight: 600; color: var(--ink); }
.mark-ok { color: var(--ok); font-weight: 700; }
.mark-warn { color: var(--warn); font-weight: 700; }
.mark-no { color: var(--bad); font-weight: 700; }

/* ---------- FAQ / accordéons ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--ink);
    font-size: 1.01rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--violet);
    line-height: 1;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 24px 22px; font-size: 0.95rem; color: var(--ink-muted); line-height: 1.65; }
.faq-answer a { color: var(--violet-deep); font-weight: 600; }
.faq-answer strong { color: var(--ink-soft); }
.faq-answer ul { list-style: disc; padding-left: 20px; margin: 8px 0; }

.faq-theme {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 52px 0 20px;
    scroll-margin-top: 96px;
}
.faq-theme:first-of-type { margin-top: 0; }

/* TOC pastilles */
.toc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 880px;
    margin: 0 auto;
}
.toc-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    background: var(--white);
    border: 1px solid var(--hairline);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all 0.2s ease;
}
.toc-pill:hover { border-color: var(--violet); color: var(--violet-deep); transform: translateY(-1px); }
.toc-pill i { color: var(--violet); }

/* ---------- Prose (pages légales, articles) ---------- */
.prose {
    max-width: 760px;
    margin: 0 auto;
}
.prose h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.65rem;
    margin: 48px 0 16px;
    line-height: 1.2;
}
.prose h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.25rem;
    margin: 32px 0 12px;
}
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; color: var(--ink-soft); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--violet-deep); font-weight: 600; border-bottom: 1px solid rgba(100,71,214,0.3); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote {
    border-left: 3px solid var(--violet);
    padding: 6px 0 6px 22px;
    margin: 24px 0;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 24px 0;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
}
.prose table th, .prose table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
    text-align: left;
}
.prose table th {
    background: var(--paper);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
}
.prose img { border-radius: 12px; margin: 24px 0; }
.prose-date { font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 32px; }

/* ---------- Blog cards ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-deep); border-bottom: 1px solid var(--hairline); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--violet-deep);
    background: var(--violet-tint);
    padding: 4px 11px;
    border-radius: var(--r-pill);
    margin-bottom: 13px;
}
.blog-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.13rem;
    line-height: 1.3;
    margin-bottom: 9px;
}
.blog-card p { font-size: 0.89rem; color: var(--ink-muted); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.blog-card time { font-size: 0.78rem; color: var(--ink-muted); }

/* ---------- Événements ---------- */
.event-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.event-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-deep); position: relative; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(11, 11, 48, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--r-pill);
}
.event-card-body { padding: 22px 24px 24px; }
.event-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.84rem;
    color: var(--ink-muted);
    margin-bottom: 12px;
}
.event-meta i { color: var(--violet); margin-right: 4px; }
.event-card p { font-size: 0.91rem; color: var(--ink-muted); line-height: 1.6; }

/* ---------- CTA strip & panneau final ---------- */
.cta-strip {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-strip h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin-bottom: 6px; }
.cta-strip p { font-size: 0.95rem; color: var(--ink-muted); }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.final-cta { padding: var(--section-y) 0; }
.final-cta-panel {
    background: var(--night);
    border-radius: 28px;
    padding: 88px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta-panel::after {
    content: '';
    position: absolute;
    bottom: -55%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 480px;
    background: radial-gradient(closest-side, rgba(100, 71, 214, 0.32), transparent 75%);
    pointer-events: none;
}
.final-cta-panel h2 {
    font-family: var(--serif);
    font-weight: 540;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    color: #fff;
    line-height: 1.12;
    margin-bottom: 18px;
    position: relative; z-index: 1;
}
.final-cta-panel h2 em { color: #C9B8FF; }
.final-cta-panel p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.06rem;
    max-width: 520px;
    margin: 0 auto 38px;
    position: relative; z-index: 1;
}
.final-cta-panel .btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
}
.contact-copy .eyebrow { margin-bottom: 20px; }
.contact-copy h2 {
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1.12;
    margin-bottom: 18px;
}
.contact-copy > p { color: var(--ink-muted); font-size: 1.02rem; margin-bottom: 38px; }

.contact-items { display: flex; flex-direction: column; }
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid var(--hairline);
}
.contact-item:last-child { border-bottom: 1px solid var(--hairline); }
.contact-item > i { font-size: 1.25rem; color: var(--violet); margin-top: 2px; }
.contact-item-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    font-weight: 700;
    margin-bottom: 3px;
}
.contact-item a, .contact-item span.val { display: block; color: var(--ink); font-weight: 550; font-size: 0.97rem; }
.contact-item a:hover { color: var(--violet-deep); }

.socials { display: flex; gap: 10px; margin-top: 30px; }
.socials a {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    display: grid; place-items: center;
    font-size: 1.15rem;
    color: var(--ink-soft);
    transition: all 0.22s ease;
}
.socials a:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 44px;
    box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--hairline-strong);
    border-radius: 11px;
    background: var(--paper);
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #A8A5B8; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--violet);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(100, 71, 214, 0.12);
}
.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 16px;
    text-align: center;
}
.form-note a { color: var(--violet-deep); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--night);
    color: rgba(255, 255, 255, 0.62);
    padding: 76px 0 36px;
    margin-top: var(--section-y);
}
.site-footer.flush { margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 22px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; line-height: 1.65; max-width: 280px; }
.footer-socials { display: flex; gap: 9px; margin-top: 22px; }
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid; place-items: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}
.footer-socials a:hover { background: #fff; color: var(--night); border-color: #fff; }
.footer-col h4 {
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col h4 + h4, .footer-col ul + h4 { margin-top: 28px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    font-size: 0.84rem;
    flex-wrap: wrap;
}
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   CHATBOT IA (Magica) — adaptation thème clair
   Le DOM est injecté par js/chatbot.js (classes cb-*)
   ============================================================ */
.cb-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    font-family: var(--sans);
}
.cb-trigger {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--ink);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 2, 50, 0.3);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cb-trigger:hover {
    transform: translateY(-3px) scale(1.04);
    background: var(--violet-deep);
    box-shadow: 0 14px 36px rgba(79, 53, 184, 0.4);
}
.cb-trigger-icon-open { position: absolute; transition: opacity 0.2s, transform 0.3s; }
.cb-trigger-icon-close { position: absolute; opacity: 0; transform: rotate(-90deg); transition: opacity 0.2s, transform 0.3s; }
.cb-widget.cb-open .cb-trigger-icon-open { opacity: 0; transform: rotate(90deg); }
.cb-widget.cb-open .cb-trigger-icon-close { opacity: 1; transform: rotate(0deg); }
.cb-trigger-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(100, 71, 214, 0.5);
    animation: cb-pulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes cb-pulse {
    0%   { transform: scale(1); opacity: 0.8; }
    80%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}
.cb-widget.cb-open .cb-trigger-pulse { display: none; }

.cb-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.cb-trigger:hover .cb-tooltip { opacity: 1; transform: translateY(-50%) translateX(-4px); }
.cb-trigger-wa-badge {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #25d366;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--paper);
    color: white;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.5);
}
.cb-trigger-wa-badge svg { width: 12px; height: 12px; }
.cb-widget.cb-open .cb-tooltip { display: none; }

.cb-panel {
    position: absolute;
    bottom: 80px; right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 580px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.28s, transform 0.28s;
    box-shadow: 0 30px 80px rgba(0, 2, 50, 0.22);
}
.cb-widget.cb-open .cb-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.cb-wa-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--t-labo);
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}
.cb-wa-banner:hover { background: #DDF0E7; }
.cb-wa-banner-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #25d366;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cb-wa-banner-icon svg { width: 16px; height: 16px; }
.cb-wa-banner-text { flex: 1; min-width: 0; }
.cb-wa-banner-text strong { display: block; color: var(--c-labo); font-size: 0.88rem; font-weight: 700; }
.cb-wa-banner-text span { display: block; color: var(--ink-muted); font-size: 0.78rem; line-height: 1.3; }
.cb-wa-banner-arrow { color: var(--c-labo); font-size: 1.1rem; flex-shrink: 0; }

.cb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
}
.cb-header-info { display: flex; align-items: center; gap: 12px; }
.cb-header-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--violet);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.3rem;
}
.cb-header-name {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
}
.cb-header-status { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--ink-muted); margin-top: 2px; }
.cb-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: cb-dot-pulse 2s ease-in-out infinite;
}
@keyframes cb-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.cb-header-close {
    background: var(--white);
    border: 1px solid var(--hairline);
    color: var(--ink-muted);
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.cb-header-close:hover { color: var(--ink); border-color: var(--hairline-strong); }

.cb-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--hairline-strong) transparent;
    background: var(--white);
}
.cb-body::-webkit-scrollbar { width: 6px; }
.cb-body::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 3px; }

.cb-welcome { text-align: center; padding: 16px 8px; }
.cb-welcome-avatar {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: var(--violet);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.7rem;
}
.cb-welcome h4 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.cb-welcome p { color: var(--ink-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 18px; }
.cb-suggestions { display: flex; flex-direction: column; gap: 8px; }
.cb-suggest {
    background: var(--violet-tint);
    border: 1px solid transparent;
    color: var(--violet-deep);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.cb-suggest:hover { border-color: var(--violet); transform: translateX(2px); }

.cb-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; animation: cb-msg-in 0.25s ease-out; }
@keyframes cb-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.cb-msg-user { justify-content: flex-end; }
.cb-msg-user .cb-bubble {
    background: var(--violet);
    color: white;
    border-radius: 16px 16px 4px 16px;
    max-width: 80%;
}
.cb-msg-bot .cb-bubble {
    background: var(--paper);
    border: 1px solid var(--hairline);
    color: var(--ink-soft);
    border-radius: 16px 16px 16px 4px;
    max-width: 82%;
}
.cb-bubble { padding: 10px 14px; font-size: 0.92rem; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }
.cb-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cb-msg-bot .cb-bubble a { color: var(--violet-deep); }
.cb-bubble strong { font-weight: 700; }
.cb-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--violet);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cb-typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.cb-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ink-muted);
    animation: cb-typing 1.2s infinite ease-in-out;
}
.cb-typing span:nth-child(2) { animation-delay: 0.15s; }
.cb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cb-typing {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.cb-footer {
    border-top: 1px solid var(--hairline);
    padding: 12px 14px 14px;
    background: var(--paper);
}
.cb-input-row { display: flex; gap: 8px; align-items: center; }
.cb-input {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--hairline-strong);
    color: var(--ink);
    padding: 11px 14px;
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s;
}
.cb-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(100, 71, 214, 0.1); }
.cb-input:disabled { opacity: 0.5; cursor: not-allowed; }
.cb-input::placeholder { color: #A8A5B8; }
.cb-send {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--violet);
    color: white;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
}
.cb-send:hover:not(:disabled) { background: var(--violet-deep); transform: scale(1.05); }
.cb-send:disabled { opacity: 0.4; cursor: not-allowed; }
.cb-footer-info { margin-top: 8px; text-align: center; font-size: 0.72rem; color: var(--ink-muted); }

@media (max-width: 480px) {
    .cb-widget { right: 12px; bottom: 12px; }
    .cb-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 76px;
        right: 0;
    }
    .cb-trigger { width: 54px; height: 54px; font-size: 1.4rem; }
    .cb-tooltip { display: none; }
}

@keyframes cbspin { to { transform: rotate(360deg); } }

/* Badge reCAPTCHA masqué (la mention obligatoire est affichée dans le footer
   via magica2026.js + près des formulaires) — évite le chevauchement avec
   le déclencheur du chatbot en bas à droite */
.grecaptcha-badge { visibility: hidden !important; }

.recaptcha-note { flex-basis: 100%; font-size: 0.76rem; color: rgba(255, 255, 255, 0.4); }
.recaptcha-note a { text-decoration: underline; text-underline-offset: 2px; }
.recaptcha-note a:hover { color: #fff; }

/* ---------- Animations d'apparition ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn, .segment-card, .product-card, .shot-card, .patient-card, .info-card, .blog-card { transition: none; }
    .cb-trigger-pulse, .cb-status-dot { animation: none; }
}

/* ---------- Utilitaires ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-cta { text-align: center; margin-top: 52px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    :root { --section-y: 88px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-copy { max-width: 640px; }
    .hero-visual { max-width: 640px; }
    .float-card.fc-bottom { left: 8px; bottom: -24px; }
    .float-card.fc-top { right: 8px; top: -20px; }
    .clients-track, .clients-track.wide { grid-template-columns: repeat(4, 1fr); }
    .segments-grid { grid-template-columns: repeat(3, 1fr); }
    .catalog-grid, .cards-grid, .cards-grid.four { grid-template-columns: 1fr 1fr; }
    .certs-grid.four { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; gap: 48px; }
    .detail-grid.flip .detail-copy { order: 1; }
    .detail-grid.flip .detail-visual { order: 2; }
    .why-row { grid-template-columns: 80px 1fr; }
    .why-row p { grid-column: 2; }
    .testis-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 52px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .shots-grid.three { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        background: var(--paper);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 28px 24px;
        display: none;
        z-index: 99;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 0; width: 100%; font-size: 1.05rem; }
    .nav-toggle { display: flex; }
    .header-phone { display: none; }

    .hero { padding: 56px 0 72px; }
    .hero-stats { flex-wrap: wrap; gap: 20px 0; }
    .hero-stats > div { flex: 1 1 40%; }
    .hero-stats > div:nth-child(3) { padding-left: 0; border-left: none; }

    .page-hero { padding: 48px 0 56px; }

    .certs-grid, .certs-grid.four { grid-template-columns: 1fr; }
    .segments-grid { grid-template-columns: 1fr 1fr; }
    .clients-track, .clients-track.wide { grid-template-columns: repeat(3, 1fr); }
    .shots-grid, .shots-grid.three { grid-template-columns: 1fr; }
    .patients-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .final-cta-panel { padding: 64px 28px; border-radius: 22px; }
    .contact-form-card { padding: 30px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .cta-strip { padding: 28px 24px; }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    .header-cta .btn { padding: 9px 16px; font-size: 0.84rem; }
    /* Les libellés longs (ex. CTA conformité) débordaient avec nowrap → retour ligne autorisé */
    .btn { white-space: normal; text-align: center; }
    .cta-strip .btn, .detail-actions .btn { width: 100%; justify-content: center; }
    .catalog-grid, .cards-grid, .cards-grid.four { grid-template-columns: 1fr; }
    .segments-grid { grid-template-columns: 1fr; }
    .clients-track, .clients-track.wide { grid-template-columns: 1fr 1fr; }
    .hero-actions .btn, .page-hero-actions .btn { width: 100%; justify-content: center; }
    .why-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
    .why-row p { grid-column: 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .float-card.fc-top { display: none; }
    .step-row { gap: 16px; }
}

/* ============================================================
   Nav mega-menu (Solutions / Spécialités) — juillet 2026
   ============================================================ */
.nav-group { position: relative; }

.nav-group-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.95rem; font-weight: 550;
    color: var(--ink-soft); padding: 6px 0; position: relative;
}
.nav-group-trigger > i { font-size: 0.78rem; transition: transform 0.22s ease; }
.nav-group-trigger:hover, .nav-group.open .nav-group-trigger { color: var(--ink); }
.nav-group.open .nav-group-trigger > i { transform: rotate(180deg); }
.nav-group-trigger::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1.5px; background: var(--ink);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.28s ease;
}
.nav-group-trigger:hover::after, .nav-group.open .nav-group-trigger::after { transform: scaleX(1); transform-origin: left; }

.nav-panel {
    position: absolute; top: calc(100% + 12px); left: -18px;
    width: 380px;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(11, 11, 48, 0.12);
    padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 120;
}
/* Pont de survol entre le trigger et le panneau */
.nav-panel::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-panel-wide { width: 620px; }
.nav-group.open .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-panel-grid.one-col { grid-template-columns: 1fr; }
.nav-panel-grid.three { grid-template-columns: repeat(3, 1fr); }

.nav-panel-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--ink-muted);
    padding: 10px 12px 4px;
}
.nav-panel-label + .nav-panel-grid { margin-top: 0; }

.main-nav .nav-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 11px 12px; border-radius: 12px;
}
.main-nav .nav-card::after { display: none; }
.main-nav .nav-card:hover { background: var(--paper); }
.nav-card-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.2rem;
}
.nav-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nav-card-body strong { font-size: 0.92rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
.nav-card-body small { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.4; }

.main-nav .nav-panel-foot {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px; padding: 12px 14px;
    border-top: 1px solid var(--hairline);
    font-size: 0.86rem; font-weight: 600; color: var(--violet-deep);
    border-radius: 0 0 12px 12px;
}
.main-nav .nav-panel-foot::after { display: none; }
.main-nav .nav-panel-foot:hover { background: var(--violet-tint); }
.main-nav .nav-panel-foot span { flex: 1; }

.main-nav .nav-phone-mobile { display: none; }

@media (max-width: 860px) {
    .main-nav { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; }

    .nav-group { width: 100%; }
    .nav-group-trigger {
        width: 100%; justify-content: space-between;
        padding: 13px 0; font-size: 1.05rem;
    }
    .nav-group-trigger::after { display: none; }

    .nav-panel, .nav-panel-wide {
        position: static; width: 100%;
        border: none; box-shadow: none; background: transparent;
        padding: 0 0 4px 6px; border-radius: 0;
        opacity: 1; visibility: visible; transform: none;
        display: none;
    }
    .nav-panel::before { display: none; }
    .nav-group.open .nav-panel { display: block; }
    .nav-panel-grid, .nav-panel-grid.one-col, .nav-panel-grid.three { grid-template-columns: 1fr; gap: 0; }
    .nav-panel-label { padding-left: 8px; }
    .main-nav .nav-card { padding: 10px 8px; }
    .main-nav .nav-panel-foot { margin-top: 4px; padding: 12px 8px; border-radius: 0; }

    .main-nav .nav-phone-mobile {
        display: inline-flex; align-items: center; gap: 8px;
        color: var(--ink); font-weight: 600;
        border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 16px;
    }
    .main-nav .nav-phone-mobile i { color: var(--violet); }
}
