/* Version animée du site (08/10/2026) — couche séparée : retirer vivant.css, vivant.js et la ligne
   « classList.add('vivant') » du <head> rend le site statique d'origine. Tout est sous html.vivant,
   classe posée seulement si le système n'a pas demandé de réduire les animations. */

/* ——— niveau d'eau : la ligne sous l'en-tête se remplit au fil de la page ——— */
html.vivant .head::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;transform-origin:0 50%;transform:scaleX(var(--niveau,0));background:linear-gradient(90deg,var(--cyan),#7fe0f6 60%,var(--cyan-ink));pointer-events:none}
html.vivant[dir=rtl] .head::after{transform-origin:100% 50%}

/* ——— ouverture de page (accueil) ——— */
@keyframes v-monte{from{opacity:0;transform:translateY(26px)}}
@keyframes v-fond{from{background-size:0% 100%}}
@keyframes v-image{from{transform:scale(1.08)}}
@keyframes v-cadre{from{clip-path:inset(14% 0 0 0 round 24px);opacity:.4}}
@keyframes v-reflet{0%{transform:translateX(-120%) skewX(-18deg)}100%{transform:translateX(320%) skewX(-18deg)}}
html.vivant .hero .eyebrow{animation:v-monte .7s .05s cubic-bezier(.2,.7,.2,1) both}
html.vivant .hero h1{animation:v-monte .9s .12s cubic-bezier(.2,.7,.2,1) both}
html.vivant .hero h1 em{background-size:100% 100%;background-repeat:no-repeat;animation:v-fond 1.1s .75s cubic-bezier(.6,0,.2,1) both}
html.vivant[dir=rtl] .hero h1 em{background-position:100% 0}
html.vivant .hero .lede{animation:v-monte .8s .28s cubic-bezier(.2,.7,.2,1) both}
html.vivant .hero .cta-row{animation:v-monte .8s .4s cubic-bezier(.2,.7,.2,1) both}
html.vivant .hero-fig{position:relative;animation:v-cadre 1.2s .2s cubic-bezier(.2,.7,.2,1) both}
html.vivant .hero-fig img{animation:v-image 2.4s .2s cubic-bezier(.2,.7,.2,1) both}
html.vivant .hero-fig::after{content:'';position:absolute;top:0;bottom:0;left:0;width:28%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);transform:translateX(-120%) skewX(-18deg);animation:v-reflet 1.6s 1.3s cubic-bezier(.4,0,.2,1) both;pointer-events:none}
html.vivant .hero .facts li{animation:v-monte .7s cubic-bezier(.2,.7,.2,1) both}
html.vivant .hero .facts li:nth-child(1){animation-delay:.55s}
html.vivant .hero .facts li:nth-child(2){animation-delay:.63s}
html.vivant .hero .facts li:nth-child(3){animation-delay:.71s}
html.vivant .hero .facts li:nth-child(4){animation-delay:.79s}
html.vivant .facts strong{font-variant-numeric:tabular-nums}
/* fiches produits : la photo puis le texte montent à l'ouverture */
html.vivant .crumbs{animation:v-monte .6s .02s cubic-bezier(.2,.7,.2,1) both}
html.vivant .pp-media{animation:v-monte .9s .08s cubic-bezier(.2,.7,.2,1) both}
html.vivant .pp-info{animation:v-monte .9s .2s cubic-bezier(.2,.7,.2,1) both}

/* ——— apparitions au scroll (vivant.js pose .rv puis .vu) ——— */
html.vivant .rv{opacity:0;transform:translateY(48px) scale(.97)}
html.vivant .rv.vu{opacity:1;transform:none;transition:opacity .9s var(--d,0s) cubic-bezier(.2,.7,.2,1),transform 1.1s var(--d,0s) cubic-bezier(.16,.84,.24,1)}
html.vivant .card.rv,html.vivant .card.fini{animation:none}
/* titres de section : le texte monte comme un niveau d'eau */
/* (le masque est une animation et non l'état caché : un titre entièrement masqué n'est jamais « vu » par le navigateur) */
@keyframes v-niveau{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 -25% 0)}}
html.vivant .sec-head h2.rv{transform:translateY(18px)}
html.vivant .sec-head h2.rv.vu{opacity:1;transform:none;transition:transform 1s var(--d,0s) cubic-bezier(.2,.7,.2,1);animation:v-niveau 1s var(--d,0s) cubic-bezier(.6,0,.2,1) both}
/* une fois apparus, vivant.js retire .rv/.vu et pose .fini : les effets de survol d'origine reprennent la main */

/* ——— étapes : les numéros éclosent comme des gouttes ——— */
@keyframes v-eclot{0%{transform:scale(0)}55%{transform:scale(1.18,.86)}75%{transform:scale(.94,1.06)}100%{transform:none}}
@keyframes v-rond{from{transform:scale(.6);opacity:.7}to{transform:scale(2.4);opacity:0}}
html.vivant .steps li.rv .n{transform:scale(0)}
html.vivant .steps li.fini .n{position:relative;background:linear-gradient(180deg,#5fd6f2,var(--cyan-ink))}
html.vivant .steps li.vu .n{position:relative;background:linear-gradient(180deg,#5fd6f2,var(--cyan-ink));animation:v-eclot .7s calc(var(--d,0s) + .25s) cubic-bezier(.3,.7,.3,1) both}
html.vivant .steps li.vu .n::after{content:'';position:absolute;inset:0;border-radius:50%;border:2px solid var(--cyan);opacity:0;animation:v-rond 1s calc(var(--d,0s) + .45s) ease-out}

/* ——— bulles dans la section sombre ——— */
html.vivant .sec-dark{position:relative;isolation:isolate}
.bulles{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.bulles i{position:absolute;bottom:-40px;left:var(--x);width:var(--t);height:var(--t);border-radius:50%;background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.75) 0 10%,transparent 22%),radial-gradient(circle,transparent 55%,rgba(127,224,246,.28) 75%,rgba(127,224,246,.1) 100%);border:1px solid rgba(160,232,248,.42);animation:v-bulle var(--dur) var(--del) linear infinite;animation-play-state:paused}
.bulles.actives i{animation-play-state:running}
@keyframes v-bulle{0%{transform:translate(0,0);opacity:0}8%{opacity:1}50%{transform:translate(var(--sw),-55vh)}90%{opacity:.8}100%{transform:translate(0,-110vh);opacity:0}}

/* ——— ondes au clic ——— */
html.vivant .btn,html.vivant .chip{position:relative;overflow:hidden}
.onde-clic{position:absolute;border-radius:50%;background:currentColor;opacity:.22;transform:translate(-50%,-50%) scale(0);pointer-events:none;width:10px;height:10px}

/* ——— cartes : légère inclinaison sous le pointeur (ordinateur) ——— */
@media (hover:hover) and (pointer:fine){
  html.vivant .card:not(.rv):hover,html.vivant .g-card:not(.rv):hover{transform:perspective(900px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg)) translateY(-4px)}
  html.vivant .card .card-img img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
  html.vivant .card:hover .card-img img{transform:scale(1.06) translate(var(--px,0),var(--py,0))}
}

/* ——— questions : ouverture en douceur (navigateurs récents) ——— */
html.vivant{interpolate-size:allow-keywords}
html.vivant .faq details::details-content{block-size:0;overflow:clip;transition:block-size .4s cubic-bezier(.2,.7,.2,1),content-visibility .4s allow-discrete}
html.vivant .faq details[open]::details-content{block-size:auto}
html.vivant .faq summary::after{transition:transform .35s cubic-bezier(.2,.7,.2,1)}

/* ═══ v2 (08/10/2026, « anime mieux ») ═══ */

/* titres mot par mot : chaque mot sort de sous la ligne (vMots, script du <head> ; pas en arabe, où l'ordre des
   mots dépend de l'algorithme bidirectionnel : les titres arabes gardent la révélation en bloc) */
html.vivant .mots .mot{display:inline-block;overflow:hidden;vertical-align:top;padding:.12em 0 .18em;margin:-.12em 0 -.18em}
html.vivant .mots .mot>span{display:inline-block;transform-origin:0 100%}
@keyframes v-mot{from{transform:translateY(118%) rotate(6deg)}}
html.vivant .hero h1.mots{animation:none}
html.vivant .hero h1.mots .mot>span{animation:v-mot 1.05s calc(.12s + var(--i)*.06s) cubic-bezier(.2,.85,.25,1) both}
html.vivant .sec-head h2.mots.rv{opacity:1;transform:none}
html.vivant .sec-head h2.mots.rv .mot>span{transform:translateY(118%) rotate(6deg)}
html.vivant .sec-head h2.mots.rv.vu{animation:none}
html.vivant .sec-head h2.mots.rv.vu .mot>span{transform:none;transition:transform 1s calc(var(--d,0s) + var(--i)*.055s) cubic-bezier(.2,.85,.25,1)}

/* « sensationnelle » : le surlignage devient de l'eau qui ondule */
@keyframes v-houle{to{background-position-x:1.6em}}
@keyframes v-remplit{from{transform:scaleY(0)}}
html.vivant .hero h1 em{background:none;position:relative;z-index:0;animation:none}
html.vivant .hero h1 em::before,html.vivant .hero h1 em::after{content:'';position:absolute;left:-.05em;right:-.05em;bottom:.02em;height:.42em;z-index:-1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 8Q10 0 20 8T40 8V20H0z' fill='rgba(54,200,234,.38)'/%3E%3C/svg%3E") repeat-x 0 0/1.6em 100%;transform-origin:50% 100%;animation:v-houle 3.2s linear infinite,v-remplit 1.3s .9s cubic-bezier(.3,.7,.3,1) both}
html.vivant .hero h1 em::after{height:.5em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 9Q10 2 20 9T40 9V20H0z' fill='rgba(54,200,234,.22)'/%3E%3C/svg%3E");animation-duration:5s,1.3s;animation-direction:reverse,normal;animation-delay:0s,1s}

/* vagues : la surface de l'eau au-dessus des sections sombres (vivant.js) */
html.vivant .foot{position:relative}
.vagues{position:absolute;left:0;right:0;bottom:100%;height:68px;margin-bottom:-1px;overflow:hidden;pointer-events:none}
.vagues svg{position:absolute;left:0;bottom:0;width:200%;height:100%;animation:v-vague var(--v) linear infinite}
.vagues svg:nth-child(2){animation-direction:reverse}
@keyframes v-vague{to{transform:translateX(-50%)}}
@media (max-width:720px){.vagues{height:40px}}

/* la photo de la gamme gagne en profondeur (vivant.js) */
html.vivant .hero-fig picture{will-change:transform;transform:scale(1.03)}

/* les appareils du guide flottent comme sur l'eau */
@keyframes v-flotte{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(-.8deg)}}
html.vivant .g-img img{animation:v-flotte 5.6s ease-in-out infinite}
html.vivant .g-card:nth-child(2) .g-img img{animation-delay:-1.4s}
html.vivant .g-card:nth-child(3) .g-img img{animation-delay:-2.8s}
html.vivant .g-card:nth-child(4) .g-img img{animation-delay:-4.2s}

/* reflet de verre qui traverse la carte au survol */
html.vivant .card{position:relative}
html.vivant .card::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.6) 50%,transparent 65%);transform:translateX(-110%)}
html.vivant .card:hover::after{transform:translateX(110%);transition:transform 1s cubic-bezier(.3,.6,.3,1)}

/* barre « Pack Sensatieau » : de l'eau qui court */
@keyframes v-courant{to{background-position-x:28px}}
html.vivant .bar-f.b2{position:relative;overflow:hidden}
html.vivant .bar-f.b2::after{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14' preserveAspectRatio='none'%3E%3Cpath d='M0 6Q7 1 14 6T28 6V14H0z' fill='rgba(255,255,255,.28)'/%3E%3C/svg%3E") repeat-x 0 0/28px 100%;animation:v-courant 1.2s linear infinite}
html.vivant[dir=rtl] .bar-f.b2::after{animation-direction:reverse}

/* boutons principaux attirés par la souris */
@media (hover:hover) and (pointer:fine){html.vivant .btn-primary,html.vivant .btn-cyan{transition:transform .25s cubic-bezier(.2,.7,.2,1),background .15s,box-shadow .15s}}

/* ═══ curseur et logo (08/10/2026) ═══ */

/* souris : le pointeur est la goutte du logo (image, puis goutte animée de vivant.js qui pose html.souris et html.pointeur-on) */
@media (hover:hover) and (pointer:fine){
  html.vivant.souris,html.vivant.souris *{cursor:url(../img/curseur-goutte.png) 3 3,auto;cursor:-webkit-image-set(url(../img/curseur-goutte.png) 1x,url(../img/curseur-goutte@2x.png) 2x) 3 3,auto;cursor:image-set(url(../img/curseur-goutte.png) 1x,url(../img/curseur-goutte@2x.png) 2x) 3 3,auto}
  html.vivant.souris input[type=range]::-webkit-slider-thumb{cursor:inherit}
  html.vivant.souris input[type=range]::-moz-range-thumb{cursor:inherit}
  html.vivant.souris :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),textarea,[contenteditable=true]){cursor:text}
  html.vivant.souris video{cursor:auto}
  html.vivant.souris.pointeur-on,html.vivant.souris.pointeur-on *{cursor:none}
  html.vivant.souris.pointeur-on input[type=range]::-webkit-slider-thumb{cursor:none}
}
.pointeur{position:fixed;left:0;top:0;width:18px;height:24px;transform-origin:9px 1.33px;pointer-events:none;z-index:90;opacity:0;transition:opacity .15s;will-change:transform}
.pointeur.on{opacity:1}
.pointeur svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(1px 2px 2px rgba(11,28,38,.35))}
.gouttelette{position:fixed;left:0;top:0;margin:-3px 0 0 -3px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d9f6fd,#36c8ea 55%,#159fca);box-shadow:0 0 0 1px rgba(255,255,255,.7);pointer-events:none;z-index:89}

/* curseurs du calcul : des gouttes */
html.vivant input[type=range]::-webkit-slider-thumb{width:24px;height:40px;border:0;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-3 -3 40 66'%3E%3Cpath d='M17 0C14.5 7 0 18.5 0 31a17 17 0 0 0 34 0C34 18.5 19.5 7 17 0z' fill='%2336c8ea' stroke='white' stroke-width='3.5'/%3E%3Cellipse cx='10' cy='27' rx='2.6' ry='5' fill='white' opacity='.55' transform='rotate(25 10 27)'/%3E%3C/svg%3E") center/contain no-repeat;box-shadow:none;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35));transform-origin:50% 75%;transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
html.vivant input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.08)}
html.vivant input[type=range]:active::-webkit-slider-thumb{transform:scale(1.22,.9)}
html.vivant input[type=range]:focus-visible::-webkit-slider-thumb{outline:none;filter:drop-shadow(0 0 0 #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 3px 4px rgba(0,0,0,.35))}
html.vivant input[type=range]::-moz-range-thumb{width:24px;height:40px;border:0;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-3 -3 40 66'%3E%3Cpath d='M17 0C14.5 7 0 18.5 0 31a17 17 0 0 0 34 0C34 18.5 19.5 7 17 0z' fill='%2336c8ea' stroke='white' stroke-width='3.5'/%3E%3Cellipse cx='10' cy='27' rx='2.6' ry='5' fill='white' opacity='.55' transform='rotate(25 10 27)'/%3E%3C/svg%3E") center/contain no-repeat;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35))}

/* logo : la goutte du « i » vit sa vie (vivant.js) */
.logo-v{position:relative;display:inline-block;line-height:0;vertical-align:middle}
.logo-v.pret img{-webkit-mask:linear-gradient(#000 0 0) 0 0/100% 100% no-repeat,linear-gradient(#000 0 0) 63.94% 0/4.57% 36.8% no-repeat;-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) 0 0/100% 100% no-repeat exclude,linear-gradient(#000 0 0) 63.94% 0/4.57% 36.8% no-repeat}
.logo-g{position:absolute;left:61.36%;top:3.23%;width:3.79%;height:30.97%;transform-origin:50% 100%;pointer-events:none}
.logo-g svg{display:block;width:100%;height:100%;overflow:visible}
.logo-o{position:absolute;left:63.25%;top:33.5%;width:9%;height:7%;margin:-3.5% 0 0 -4.5%;border-radius:50%;border:1px solid rgba(54,200,234,.8);opacity:0;pointer-events:none}
.logo-r{position:absolute;inset:0;pointer-events:none;-webkit-mask:var(--logo) 0 0/100% 100% no-repeat;mask:var(--logo) 0 0/100% 100% no-repeat;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.95) 50%,transparent 60%) 100% 0/250% 100% no-repeat}
