/* BI Expertise — animations. Activées seulement si JS + pas de « réduire les animations » (classe html.bi-anim). */

/* ---------- Fond animé des bandeaux ---------- */
.bi-hero { position: relative; isolation: isolate; }
.bi-hero::before, .bi-hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; }
.bi-hero::before { width: 28rem; height: 28rem; top: -8rem; right: -6rem; background: radial-gradient(circle, var(--bi-teal-2), transparent 65%); animation: bi-float 14s ease-in-out infinite; }
.bi-hero::after { width: 22rem; height: 22rem; bottom: -6rem; left: -5rem; background: radial-gradient(circle, var(--bi-accent), transparent 65%); opacity: .18; animation: bi-float 18s ease-in-out infinite reverse; }
@keyframes bi-float { 0%, 100% { translate: 0 0; scale: 1; } 50% { translate: -3rem 2.5rem; scale: 1.15; } }

/* ---------- Slider : entrée en cascade du contenu + icône flottante ---------- */
.bi-slide__body > * { opacity: 0; translate: 0 1.5rem; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .2, 1); }
.bi-slide.is-active .bi-slide__body > * { opacity: 1; translate: 0 0; }
.bi-slide.is-active .bi-slide__body > *:nth-child(1) { transition-delay: .15s; }
.bi-slide.is-active .bi-slide__body > *:nth-child(2) { transition-delay: .27s; }
.bi-slide.is-active .bi-slide__body > *:nth-child(3) { transition-delay: .39s; }
.bi-slide.is-active .bi-slide__body > *:nth-child(4) { transition-delay: .51s; }
.bi-slide.is-active .bi-slide__body > *:nth-child(5) { transition-delay: .63s; }
.bi-slide__art { position: relative; overflow: hidden; clip-path: inset(0 0 0 100% round 1.25rem); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1) .1s; }
.bi-slide.is-active .bi-slide__art { clip-path: inset(0 round 1.25rem); }
.bi-slide__art::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .22), transparent 30%); animation: bi-spin 9s linear infinite; }
.bi-slide__art .material-symbols-outlined { position: relative; animation: bi-bob 4.5s ease-in-out infinite; }
@keyframes bi-spin { to { transform: rotate(1turn); } }
@keyframes bi-bob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -.9rem; rotate: 3deg; } }

/* ---------- Mode animé : états de départ ---------- */
.bi-anim [data-bi-reveal] { opacity: 0; translate: 0 2.5rem; transition: opacity .8s ease, translate .9s cubic-bezier(.2, .8, .2, 1), scale .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--bi-d, 0) * 90ms); will-change: opacity, translate; }
.bi-anim [data-bi-reveal="left"] { translate: -3rem 0; }
.bi-anim [data-bi-reveal="right"] { translate: 3rem 0; }
.bi-anim [data-bi-reveal="zoom"] { translate: 0 1rem; scale: .92; }
.bi-anim [data-bi-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }

/* Titres : mots qui montent derrière un masque */
.bi-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.bi-w__in { display: inline-block; }
.bi-anim [data-bi-split] .bi-w__in { translate: 0 115%; rotate: 4deg; transition: translate .8s cubic-bezier(.2, .8, .2, 1), rotate .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
.bi-anim [data-bi-split].is-in .bi-w__in { translate: 0 0; rotate: 0deg; }
[data-bi-split] strong:has(.bi-w) { background: none; color: inherit; -webkit-text-fill-color: initial; }
[data-bi-split] strong .bi-w__in { background: linear-gradient(135deg, var(--bi-teal) 0%, var(--bi-teal-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }

/* Images : rideau + zoom, parallaxe douce, survol */
.bi-imgfx { display: block; overflow: hidden; border-radius: var(--bi-img-r, .9rem); }
.bi-imgfx img { display: block; width: 100%; height: auto; scale: 1.12; transition: scale 1.2s cubic-bezier(.2, .8, .2, 1), filter .5s; will-change: translate, scale; }
.bi-anim .bi-imgfx { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.bi-anim .bi-imgfx.is-in { clip-path: inset(0 0 0 0); }
.bi-imgfx:hover img { scale: 1.2; filter: saturate(1.15) contrast(1.03); }

/* Cartes : relief 3D et reflet qui suit le pointeur */
.bi-card, .bi-offer, .bi-proof, .bi-map { position: relative; transform-style: preserve-3d; transition: transform .25s ease, box-shadow .3s ease; }
.bi-fx-glare::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(18rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 55%); opacity: 0; transition: opacity .3s; }
.bi-fx-glare:hover::after { opacity: 1; }
.bi-card:hover, .bi-offer:hover { box-shadow: 0 24px 48px -12px rgba(0, 104, 118, .35); }
.bi-card__icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.bi-card:hover .bi-card__icon { transform: scale(1.18) rotate(-6deg); }
.bi-card__more .material-symbols-outlined { transition: translate .25s; }
.bi-card:hover .bi-card__more .material-symbols-outlined { translate: .35rem 0; }

/* Boutons : reflet qui traverse */
.bi-btn { position: relative; overflow: hidden; }
.bi-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); translate: -120% 0; transition: translate .7s ease; pointer-events: none; }
.bi-btn:hover::after { translate: 120% 0; }
.bi-btn--primary { animation: bi-pulse 3.2s ease-in-out infinite; }
@keyframes bi-pulse { 0%, 100% { box-shadow: 0 4px 14px rgba(34, 184, 207, .35); } 50% { box-shadow: 0 6px 26px rgba(34, 184, 207, .65); } }

/* Étapes du processus : trait qui se dessine */
.bi-steps { position: relative; }
@media (min-width: 64rem) {
    .bi-steps::before { content: ''; position: absolute; top: 2rem; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--bi-teal-2) 0 8px, transparent 8px 16px); transform-origin: left; scale: 0 1; transition: scale 1.4s cubic-bezier(.7, 0, .2, 1) .2s; }
    .bi-steps.is-in::before, html:not(.bi-anim) .bi-steps::before { scale: 1 1; }
    .bi-step__icon { position: relative; z-index: 1; }
}

/* Carte : épingles qui rebondissent */
.bi-anim .bi-map__pins circle { transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .6s cubic-bezier(.3, 1.8, .5, 1); transition-delay: calc(var(--p, 0) * 250ms + 400ms); }
.bi-anim .bi-map.is-in .bi-map__pins circle { scale: 1; }
.bi-map__pins circle { animation: bi-ping 2.6s ease-in-out infinite; }
@keyframes bi-ping { 0%, 100% { stroke-width: 2.5; } 50% { stroke-width: 6; stroke: rgba(235, 148, 67, .35); } }
.bi-anim .bi-map__land { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2s ease .2s; }
.bi-anim .bi-map.is-in .bi-map__land { stroke-dashoffset: 0; }

/* Barre de progression de lecture + entrée de page */
.bi-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 10000; transform-origin: left; scale: 0 1; background: linear-gradient(90deg, var(--bi-teal), var(--bi-teal-2), var(--bi-accent)); pointer-events: none; }
.bi-anim .bi-page { animation: bi-page-in .7s ease both; }
@keyframes bi-page-in { from { opacity: 0; } to { opacity: 1; } }

/* Fiche de prix : surbrillance */
.bi-price-list li { transition: background .25s, padding .25s; }
.bi-price-list li:hover { background: var(--bi-chip); padding-left: .75rem; padding-right: .75rem; border-radius: .5rem; }
.bi-faq { transition: transform .25s; }
.bi-faq:hover { transform: translateX(4px); }
.bi-chips li { transition: transform .25s, background .25s; }
.bi-chips li:hover { transform: translateY(-2px) scale(1.05); }

@media (prefers-reduced-motion: reduce) {
    .bi-hero::before, .bi-hero::after, .bi-slide__art::before, .bi-slide__art .material-symbols-outlined, .bi-btn--primary, .bi-map__pins circle { animation: none !important; }
}
